Class: ActiveSupport::TestCase

Constant Summary collapse

Assertion =
Minitest::Assertion

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ActiveSupport::Testing::Declarative

extended, test

Methods included from ActiveSupport::Testing::TimeHelpers

#travel, #travel_back, #travel_to

Methods included from ActiveSupport::Testing::Deprecation

#assert_deprecated, #assert_not_deprecated, #collect_deprecations

Methods included from ActiveSupport::Testing::Assertions

#assert_difference, #assert_no_difference, #assert_not

Methods included from ActiveSupport::Testing::SetupAndTeardown

#after_teardown, #before_setup

Methods included from Concern

#append_features, extended, #included

Methods included from ActiveSupport::Testing::TaggedLogging

#before_setup

Class Method Details

.for_tag(tag) ⇒ Object



26
27
28
# File 'lib/active_support/test_case.rb', line 26

def self.for_tag(tag)
  yield if $tags[tag]
end

Instance Method Details

#assert_nothing_raised(*args) ⇒ Object

Fails if the block raises an exception.

assert_nothing_raised do
  ...
end


62
63
64
# File 'lib/active_support/test_case.rb', line 62

def assert_nothing_raised(*args)
  yield
end