aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2012-01-06 03:29:47 -0800
committerJosé Valim <jose.valim@gmail.com>2012-01-06 03:29:47 -0800
commit432a95d88536696b65f0590b1624bd01fa88468f (patch)
tree0e5ab8e63a7d61e370ab8ef1a4a9486869bc2e26 /actionpack/test
parent705b29bcb15f940294f17645ad91c02731f6861a (diff)
parent68367fd570fa9fa96b870d9abc66bc4a14fda113 (diff)
downloadrails-432a95d88536696b65f0590b1624bd01fa88468f.tar.gz
rails-432a95d88536696b65f0590b1624bd01fa88468f.tar.bz2
rails-432a95d88536696b65f0590b1624bd01fa88468f.zip
Merge pull request #4342 from carlosantoniodasilva/fix-routing-test
Fix routing test and remove deprecated method
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/action_pack_assertions_test.rb2
-rw-r--r--actionpack/test/dispatch/routing_test.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/controller/action_pack_assertions_test.rb b/actionpack/test/controller/action_pack_assertions_test.rb
index bdbf158b36..01cafe1aca 100644
--- a/actionpack/test/controller/action_pack_assertions_test.rb
+++ b/actionpack/test/controller/action_pack_assertions_test.rb
@@ -338,7 +338,7 @@ class ActionPackAssertionsControllerTest < ActionController::TestCase
end
def test_render_based_on_parameters
- process :render_based_on_parameters, "name" => "David"
+ process :render_based_on_parameters, "GET", "name" => "David"
assert_equal "Mr. David", @response.body
end
diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb
index d5c1586600..e5ed11d1ea 100644
--- a/actionpack/test/dispatch/routing_test.rb
+++ b/actionpack/test/dispatch/routing_test.rb
@@ -1443,10 +1443,10 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest
def test_nested_optional_path_shorthand
with_test_routes do
get '/registrations/new'
- assert @request.params[:locale].nil?
+ assert_nil @request.params[:locale]
get '/en/registrations/new'
- assert 'en', @request.params[:locale]
+ assert_equal 'en', @request.params[:locale]
end
end