class ActiveSupport::TestCase

Constants

Assertion

Public Class Methods

for_tag(tag) { || ... } click to toggle source
# File lib/active_support/test_case.rb, line 25
def self.for_tag(tag)
  yield if $tags[tag]
end

Public Instance Methods

assert_nothing_raised(*args) { || ... } click to toggle source

Fails if the block raises an exception.

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