mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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. ```
This commit is contained in:
parent
2c02bc0a47
commit
63171b86cb
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue