Sha256: 28ea2ce1ad38451c4a417514bfff3a4d7a6d174936be7ca83cac5bf42883199d

Contents?: true

Size: 1.05 KB

Versions: 229

Compression:

Stored size: 1.05 KB

Contents

require 'test/unit/testcase'
require 'active_support/testing/setup_and_teardown'
require 'active_support/testing/assertions'
require 'active_support/testing/deprecation'
require 'active_support/testing/declarative'
require 'active_support/testing/pending'
require 'active_support/testing/isolation'
require 'active_support/testing/mochaing'
require 'active_support/core_ext/kernel/reporting'

module ActiveSupport
  class TestCase < ::Test::Unit::TestCase
    if defined? MiniTest
      Assertion = MiniTest::Assertion
      alias_method :method_name, :name if method_defined? :name
      alias_method :method_name, :__name__ if method_defined? :__name__
    else
      Assertion = Test::Unit::AssertionFailedError

      undef :default_test
    end

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

    include ActiveSupport::Testing::SetupAndTeardown
    include ActiveSupport::Testing::Assertions
    include ActiveSupport::Testing::Deprecation
    include ActiveSupport::Testing::Pending
    extend ActiveSupport::Testing::Declarative
  end
end

Version data entries

229 entries across 193 versions & 20 rubygems

Version Path
challah-0.8.3 vendor/bundle/gems/activesupport-3.2.9/lib/active_support/test_case.rb
challah-0.8.3 vendor/bundle/gems/activesupport-3.2.8/lib/active_support/test_case.rb
dirty_history-0.7.0 dirty_history/ruby/1.9.1/gems/activesupport-3.1.1/lib/active_support/test_case.rb
classiccms-0.6.8 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/test_case.rb
activesupport-3.2.9 lib/active_support/test_case.rb
activesupport-3.2.9.rc3 lib/active_support/test_case.rb
classiccms-0.6.7 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/test_case.rb
activesupport-3.2.9.rc2 lib/active_support/test_case.rb
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/test_case.rb
activesupport-3.2.9.rc1 lib/active_support/test_case.rb
classiccms-0.6.6 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/test_case.rb
classiccms-0.6.5 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/test_case.rb
classiccms-0.6.4 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/test_case.rb
dirty_history-0.6.7 dirty_history/ruby/1.9.1/gems/activesupport-3.1.1/lib/active_support/test_case.rb
dirty_history-0.6.6 dirty_history/ruby/1.9.1/gems/activesupport-3.1.1/lib/active_support/test_case.rb
dirty_history-0.6.5 dirty_history/ruby/1.9.1/gems/activesupport-3.1.1/lib/active_support/test_case.rb
classiccms-0.6.3 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/test_case.rb
classiccms-0.6.2 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/test_case.rb
classiccms-0.6.1 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/test_case.rb
classiccms-0.6.0 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/test_case.rb