class ActiveSupport::TestCase

def assert_nothing_raised(*args)

end
perform_service(param: 'no_exception')
assert_nothing_raised do

Passes if evaluated code in the yielded block raises no exception.

Assertion that the block should not raise an exception.
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