Skip to content
Browse files

Use AS::OrderedHash when trusting in the order of the hash

  • Loading branch information...
1 parent 11614bd commit 111234e7c140398dba3bed4936e5d4d03681994c @spastorino spastorino committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 actionpack/test/controller/test_test.rb
View
5 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 @@ def setup
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

0 comments on commit 111234e

Please sign in to comment.
Something went wrong with that request. Please try again.