diff options
author | Tara Scherner de la Fuente <tara.scherner@livingsocial.com> | 2016-02-19 23:18:45 -0800 |
---|---|---|
committer | Tara Scherner de la Fuente <tara.scherner@livingsocial.com> | 2016-02-22 22:56:23 -0800 |
commit | d96550b53ecf3816dff3cb0d68dc976028dc9351 (patch) | |
tree | 841bdf899bb989e5cf038fa796119256e51e863c /activesupport/lib | |
parent | 640ef22b6738e64d502ca7443d325bd5dd096720 (diff) | |
download | rails-d96550b53ecf3816dff3cb0d68dc976028dc9351.tar.gz rails-d96550b53ecf3816dff3cb0d68dc976028dc9351.tar.bz2 rails-d96550b53ecf3816dff3cb0d68dc976028dc9351.zip |
add deprecation warning to assert_nothing_raised and changelog entry
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/test_case.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/test_case.rb b/activesupport/lib/active_support/test_case.rb index 221e1171e7..2d2e25c970 100644 --- a/activesupport/lib/active_support/test_case.rb +++ b/activesupport/lib/active_support/test_case.rb @@ -74,7 +74,11 @@ module ActiveSupport # assert_nothing_raised do # perform_service(param: 'no_exception') # end - def assert_nothing_raised + 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.") + end yield end end |