aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2011-11-23 11:10:27 -0800
committerYehuda Katz <wycats@gmail.com>2011-11-23 11:10:27 -0800
commite9f63c55f8942139e17d83b9128e47968f0accc8 (patch)
treeae86a95ec5c6e0abbfea81194d4b9bc327617ebc
parentfd86a1b6b068df87164d5763bdcd4a323a1e76f4 (diff)
parent453f5534b4a8517c6fd39702fc98f0c6f1d5fd9e (diff)
downloadrails-e9f63c55f8942139e17d83b9128e47968f0accc8.tar.gz
rails-e9f63c55f8942139e17d83b9128e47968f0accc8.tar.bz2
rails-e9f63c55f8942139e17d83b9128e47968f0accc8.zip
Merge pull request #3733 from kennyj/fix_warnings_for_show_exceptions_test
Warnings removed. (ambiguous first argument)
-rw-r--r--actionpack/test/controller/show_exceptions_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/controller/show_exceptions_test.rb b/actionpack/test/controller/show_exceptions_test.rb
index 39245e9574..74067cb895 100644
--- a/actionpack/test/controller/show_exceptions_test.rb
+++ b/actionpack/test/controller/show_exceptions_test.rb
@@ -22,7 +22,7 @@ module ShowExceptions
['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 @@ module ShowExceptions
@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 @@ module ShowExceptions
test 'show diagnostics message' do
@app = ShowExceptionsOverridenController.action(:boom)
get '/', {'detailed' => '1'}
- assert_match /boom/, body
+ assert_match(/boom/, body)
end
end
end