diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-01-06 04:08:11 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-01-06 04:08:17 -0200 |
commit | 93df3b2d15d024068eb7c9c5f2f6f9a5c4695947 (patch) | |
tree | 2eca46daeaa2a7a135137d248da1dae21c1313ce /actionpack | |
parent | 8f309e31057e1b26fefedb199ab0526126fb1fe4 (diff) | |
download | rails-93df3b2d15d024068eb7c9c5f2f6f9a5c4695947.tar.gz rails-93df3b2d15d024068eb7c9c5f2f6f9a5c4695947.tar.bz2 rails-93df3b2d15d024068eb7c9c5f2f6f9a5c4695947.zip |
Fix routing test to use assert_equal
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/remote_ip.rb | 4 | ||||
-rw-r--r-- | actionpack/test/dispatch/routing_test.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/remote_ip.rb b/actionpack/lib/action_dispatch/middleware/remote_ip.rb index 66ece60860..030ccb2017 100644 --- a/actionpack/lib/action_dispatch/middleware/remote_ip.rb +++ b/actionpack/lib/action_dispatch/middleware/remote_ip.rb @@ -33,8 +33,8 @@ module ActionDispatch class GetIp def initialize(env, middleware) - @env = env - @middleware = middleware + @env = env + @middleware = middleware @calculated_ip = false 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 |