1
0
Fork 0
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:
Ryuta Kamizono 2016-02-24 09:21:06 +09:00
parent 2c02bc0a47
commit 63171b86cb

View file

@ -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