Skip to content

Commit

Permalink
Merge pull request #4957 from ganeshkumar/order_hash_change
Browse files Browse the repository at this point in the history
replacing the orderhash with hash for ruby-1.9
  • Loading branch information
fxn committed Feb 9, 2012
2 parents 6f099af + b314524 commit a8e9f29
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions actionpack/test/controller/test_case_test.rb
@@ -1,6 +1,5 @@
require 'abstract_unit'
require 'controller/fake_controllers'
require 'active_support/ordered_hash'

class TestCaseTest < ActionController::TestCase
class TestController < ActionController::Base
Expand Down Expand Up @@ -155,14 +154,14 @@ def view_assigns
end

def test_raw_post_handling
params = ActiveSupport::OrderedHash[:page, {:name => 'page name'}, 'some key', 123]
params = Hash[: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 = ActiveSupport::OrderedHash[:page, { :name => 'page name' }, 'some key', 123]
params = Hash[:page, { :name => 'page name' }, 'some key', 123]

post :render_body, params.dup

Expand Down

0 comments on commit a8e9f29

Please sign in to comment.