mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
replacing the orderhash with hash for ruby-1.9
This commit is contained in:
parent
d1abb8ba64
commit
b314524128
1 changed files with 2 additions and 3 deletions
|
@ -1,6 +1,5 @@
|
||||||
require 'abstract_unit'
|
require 'abstract_unit'
|
||||||
require 'controller/fake_controllers'
|
require 'controller/fake_controllers'
|
||||||
require 'active_support/ordered_hash'
|
|
||||||
|
|
||||||
class TestCaseTest < ActionController::TestCase
|
class TestCaseTest < ActionController::TestCase
|
||||||
class TestController < ActionController::Base
|
class TestController < ActionController::Base
|
||||||
|
@ -155,14 +154,14 @@ XML
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_raw_post_handling
|
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
|
post :render_raw_post, params.dup
|
||||||
|
|
||||||
assert_equal params.to_query, @response.body
|
assert_equal params.to_query, @response.body
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_body_stream
|
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
|
post :render_body, params.dup
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue