class ActiveSupport::TestCase

Parent:
Minitest::Test
Included modules:
ActiveSupport::Testing::SetupAndTeardown, ActiveSupport::Testing::Assertions, ActiveSupport::Testing::TimeHelpers, ActiveRecord::TestFixtures

Constants

Assertion

Public Class Methods

for_tag(tag) { || ... } Show source
# File activesupport/lib/active_support/test_case.rb, line 26
def self.for_tag(tag)
  yield if $tags[tag]
end

Public Instance Methods

assert_nothing_raised(*args) { || ... } Show source

Fails if the block raises an exception.

assert_nothing_raised do
  ...
end
# File activesupport/lib/active_support/test_case.rb, line 62
def assert_nothing_raised(*args)
  yield
end

© 2004–2016 David Heinemeier Hansson
Licensed under the MIT License.