Class: ActiveSupport::TestCase

Inherits:
Test::Unit::TestCase
  • Object
show all
Extended by:
ActiveSupport::Testing::Declarative
Includes:
ActiveRecord::TestFixtures, ActiveSupport::Testing::Assertions, ActiveSupport::Testing::Deprecation, ActiveSupport::Testing::Pending, ActiveSupport::Testing::SetupAndTeardown
Defined in:
activesupport/lib/active_support/test_case.rb,
railties/lib/rails/test_help.rb

Constant Summary collapse

Assertion =
Test::Unit::AssertionFailedError

Class Method Summary collapse

Methods included from ActiveSupport::Testing::Declarative

extended, test

Methods included from ActiveRecord::TestFixtures

#enlist_fixture_connections, #run_in_transaction?, #setup_fixtures, #teardown_fixtures

Methods included from Concern

#append_features, extended, #included

Methods included from ActiveSupport::Testing::Pending

#pending

Methods included from ActiveSupport::Testing::Deprecation

#assert_deprecated, #assert_not_deprecated

Methods included from ActiveSupport::Testing::Assertions

#assert_blank, #assert_difference, #assert_no_difference, #assert_present

Class Method Details

.for_tag(tag) ⇒ Object



24
25
26
# File 'activesupport/lib/active_support/test_case.rb', line 24

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