instance method assert_nothing_raised

Ruby on Rails 4.1.16

Since v4.0.13 Last seen in v4.2.9

Available in: v4.0.13 v4.1.16 v4.2.9

Signature

assert_nothing_raised(*args)

Fails if the block raises an exception.

assert_nothing_raised do
  ...
end

Parameters

args rest
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close