aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-08-01 21:56:06 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2010-08-01 21:56:06 -0300
commit111234e7c140398dba3bed4936e5d4d03681994c (patch)
tree7508427268018e42d97110f418bd422fd194d188 /actionpack
parent11614bddc015deff7095bdf8bbe9f11e5d81ae1c (diff)
downloadrails-111234e7c140398dba3bed4936e5d4d03681994c.tar.gz
rails-111234e7c140398dba3bed4936e5d4d03681994c.tar.bz2
rails-111234e7c140398dba3bed4936e5d4d03681994c.zip
Use AS::OrderedHash when trusting in the order of the hash
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/controller/test_test.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/actionpack/test/controller/test_test.rb b/actionpack/test/controller/test_test.rb
index 950ad9266f..13c9d9ee38 100644
--- a/actionpack/test/controller/test_test.rb
+++ b/actionpack/test/controller/test_test.rb
@@ -1,5 +1,6 @@
require 'abstract_unit'
require 'controller/fake_controllers'
+require 'active_support/ordered_hash'
class TestTest < ActionController::TestCase
class TestController < ActionController::Base
@@ -137,14 +138,14 @@ XML
end
def test_raw_post_handling
- params = {:page => {:name => 'page name'}, 'some key' => 123}
+ params = ActiveSupport::OrderedHash[:page, {:name => 'page name'}, 'some key', 123]
post :render_raw_post, params.dup
assert_equal params.to_query, @response.body
end
def test_body_stream
- params = { :page => { :name => 'page name' }, 'some key' => 123 }
+ params = ActiveSupport::OrderedHash[:page, { :name => 'page name' }, 'some key', 123]
post :render_body, params.dup