Changeset 1254

Show
Ignore:
Timestamp:
01/09/08 21:01:10 (9 months ago)
Author:
e.@brainspl.at
Message:

fix render specs run in isolation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/spec/fixtures/controllers/render_spec_controllers.rb

    r1228 r1254  
    3939   
    4040  def to_xml(*args) 
    41     options = args.last.is_a?(Hash) ? args.pop.stringify_keys : {} 
    42     options.keys.sort.inject('') do |str, tag| 
     41    options = args.last.is_a?(Hash) ? args.pop : {} 
     42    options.keys.sort_by{|s| s.to_s}.inject('') do |str, tag| 
    4343      str << "<#{tag}>#{options[tag]}</#{tag}>" 
    4444    end