method

assert_nothing_raised

rails latest stable - Class: ActiveSupport::Testing::Assertions
assert_nothing_raised()
public

Assertion that the block should not raise an exception.

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

assert_nothing_raised do
  perform_service(param: 'no_exception')
end