Permalink
Browse files

Merge pull request #3733 from kennyj/fix_warnings_for_show_exceptions…

…_test

Warnings removed. (ambiguous first argument)
  • Loading branch information...
2 parents fd86a1b + 453f553 commit e9f63c55f8942139e17d83b9128e47968f0accc8 @wycats wycats committed Nov 23, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/test/controller/show_exceptions_test.rb
@@ -22,7 +22,7 @@ class ShowExceptionsTest < ActionDispatch::IntegrationTest
['127.0.0.1', '127.0.0.127', '::1', '0:0:0:0:0:0:0:1', '0:0:0:0:0:0:0:1%0'].each do |ip_address|
self.remote_addr = ip_address
get '/'
- assert_match /boom/, body
+ assert_match(/boom/, body)
end
end
@@ -31,7 +31,7 @@ class ShowExceptionsTest < ActionDispatch::IntegrationTest
@app = ShowExceptionsController.action(:boom)
self.remote_addr = '208.77.188.166'
get '/'
- assert_match /boom/, body
+ assert_match(/boom/, body)
end
end
@@ -53,7 +53,7 @@ class ShowExceptionsOverridenTest < ActionDispatch::IntegrationTest
test 'show diagnostics message' do
@app = ShowExceptionsOverridenController.action(:boom)
get '/', {'detailed' => '1'}
- assert_match /boom/, body
+ assert_match(/boom/, body)
end
end
end

0 comments on commit e9f63c5

Please sign in to comment.