Permalink
Browse files

Fix routing test to use assert_equal

  • Loading branch information...
1 parent 8f309e3 commit 93df3b2d15d024068eb7c9c5f2f6f9a5c4695947 @carlosantoniodasilva carlosantoniodasilva committed Jan 6, 2012
@@ -33,8 +33,8 @@ def call(env)
class GetIp
def initialize(env, middleware)
- @env = env
- @middleware = middleware
+ @env = env
+ @middleware = middleware
@calculated_ip = false
end
@@ -1443,10 +1443,10 @@ def test_nested_optional_scoped_path
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

0 comments on commit 93df3b2

Please sign in to comment.