Sha256: e18780b94a4e8966b2f7e2e1fbb6caabafb4a77c82785ca432c2266cbe2e509e

Contents?: true

Size: 1.1 KB

Versions: 34

Compression:

Stored size: 1.1 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::Assertions) && TestCase < MiniTest::Assertions
      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

34 entries across 29 versions & 7 rubygems

Version Path
activesupport-3.2.21 lib/active_support/test_case.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.18/lib/active_support/test_case.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/test_case.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.8/gems/activesupport-3.2.18/lib/active_support/test_case.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.18/lib/active_support/test_case.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/test_case.rb
apl-library-0.0.90 vendor/bundle/ruby/1.8/gems/activesupport-3.2.18/lib/active_support/test_case.rb
activesupport-3.2.20 lib/active_support/test_case.rb
activesupport-3.2.19 lib/active_support/test_case.rb
activesupport-3.2.18 lib/active_support/test_case.rb
activesupport-3.2.17 lib/active_support/test_case.rb
activesupport-3.2.16 lib/active_support/test_case.rb
activesupport-3.2.15 lib/active_support/test_case.rb
activesupport-3.2.15.rc3 lib/active_support/test_case.rb
activesupport-3.2.15.rc2 lib/active_support/test_case.rb
activesupport-3.2.15.rc1 lib/active_support/test_case.rb
activesupport-3.2.14 lib/active_support/test_case.rb
activesupport-3.2.14.rc2 lib/active_support/test_case.rb
activesupport-3.2.14.rc1 lib/active_support/test_case.rb
swipe-rails-0.0.5 vendor/bundle/gems/activesupport-3.2.13/lib/active_support/test_case.rb