instance method
assert_nothing_raised
Ruby on Rails 4.1.16
Since v4.0.13 Last seen in v4.2.9Signature
assert_nothing_raised(*args)
Fails if the block raises an exception.
assert_nothing_raised do ... end
Parameters
-
argsrest
Source
# File activesupport/lib/active_support/test_case.rb, line 62
def assert_nothing_raised(*args)
yield
end
Defined in activesupport/lib/active_support/test_case.rb line 62
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TestCase