Remove deprecated arguments in assert_nothing_raised

上级 e29eb9fe
* Remove deprecated arguments in `assert_nothing_raised`.
*Rafel Mendonça França*
* `Date.to_s` doesn't produce too many spaces. For example, `to_s(:short)`
will now produce `01 Feb` instead of ` 1 Feb`.
......
......@@ -74,12 +74,7 @@ def test_order
# assert_nothing_raised do
# perform_service(param: 'no_exception')
# 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.")
end
def assert_nothing_raised
yield
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册