Sha256: 264289487fdf646b5012a5f31da8570160b61863835eddbed85154898d165ef7
Contents?: true
Size: 960 Bytes
Versions: 6
Compression:
Stored size: 960 Bytes
Contents
begin # if present, load and set base_test_case ActiveSupport::TestCase if defined?([ActiveSupport::TestCase, MiniTest::Unit::TestCase]) && (ActiveSupport::TestCase.ancestors.include?(MiniTest::Unit::TestCase)) base_test_case = MiniTest::Unit::TestCase end rescue end # no base_test_case set, using Test:Unit:TestCase unless base_test_case require 'test/unit/testcase' unless defined?(Test::Unit::TestCase) base_test_case = Test::Unit::TestCase end require 'shoulda/context/version' require 'shoulda/context/proc_extensions' require 'shoulda/context/assertions' require 'shoulda/context/context' require 'shoulda/context/autoload_macros' module ShouldaContextLoadable def self.included(base) base.class_eval do include Shoulda::Context::Assertions include Shoulda::Context::InstanceMethods end base.extend(Shoulda::Context::ClassMethods) end end base_test_case.class_eval { include ShouldaContextLoadable }
Version data entries
6 entries across 6 versions & 3 rubygems