aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/test_case.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2016-02-24 09:21:06 +0900
committerRyuta Kamizono <kamipo@gmail.com>2016-02-24 09:21:06 +0900
commit63171b86cb6c0af3326239b2ecce879e3deccd1d (patch)
tree02d9271a09f22585ebf123e1398720c503977086 /activesupport/lib/active_support/test_case.rb
parent2c02bc0a47777ad8cf98e1465c08b1a68151803e (diff)
downloadrails-63171b86cb6c0af3326239b2ecce879e3deccd1d.tar.gz
rails-63171b86cb6c0af3326239b2ecce879e3deccd1d.tar.bz2
rails-63171b86cb6c0af3326239b2ecce879e3deccd1d.zip
Fix `assert_nothing_raised` deprecation warning format
Before: ``` DEPRECATION WARNING: Passing arguments to assert_nothing_raised is deprecated and will be removed in Rails 5.1. ``` After: ``` DEPRECATION WARNING: Passing arguments to assert_nothing_raised is deprecated and will be removed in Rails 5.1. ```
Diffstat (limited to 'activesupport/lib/active_support/test_case.rb')
-rw-r--r--activesupport/lib/active_support/test_case.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/test_case.rb b/activesupport/lib/active_support/test_case.rb
index 2d2e25c970..1fc12d0bc1 100644
--- a/activesupport/lib/active_support/test_case.rb
+++ b/activesupport/lib/active_support/test_case.rb
@@ -76,8 +76,9 @@ module ActiveSupport
# end
def assert_nothing_raised(*args)
if args.present?
- ActiveSupport::Deprecation.warn("Passing arguments to assert_nothing_raised
- is deprecated and will be removed in Rails 5.1.")
+ ActiveSupport::Deprecation.warn(
+ "Passing arguments to assert_nothing_raised " \
+ "is deprecated and will be removed in Rails 5.1.")
end
yield
end