Sha256: c300b23a0568fc1da957d081ffbee517bc1bead30615d3ce2ffa7636ac89acab

Contents?: true

Size: 530 Bytes

Versions: 13

Compression:

Stored size: 530 Bytes

Contents

module Mocha
  module Detection
    module MiniTest
      def self.testcase
        if defined?(::Minitest::Test)
          ::Minitest::Test
        elsif defined?(::MiniTest::Unit::TestCase)
          ::MiniTest::Unit::TestCase
        else
          nil
        end
      end

      def self.version
        if defined?(::MiniTest::Unit::VERSION)
          ::MiniTest::Unit::VERSION
        elsif defined?(::Minitest::VERSION)
          ::Minitest::VERSION
        else
          '0.0.0'
        end
      end
    end
  end
end

Version data entries

13 entries across 10 versions & 2 rubygems

Version Path
mocha-1.6.0 lib/mocha/detection/mini_test.rb
mocha-1.5.0 lib/mocha/detection/mini_test.rb
mocha-1.4.0 lib/mocha/detection/mini_test.rb
mocha-1.3.0 lib/mocha/detection/mini_test.rb
mocha-1.2.1 lib/mocha/detection/mini_test.rb
mocha-1.2.0 lib/mocha/detection/mini_test.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/mocha-1.0.0/lib/mocha/detection/mini_test.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/mocha-1.0.0/lib/mocha/detection/mini_test.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/mocha-1.0.0/lib/mocha/detection/mini_test.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/mocha-1.0.0/lib/mocha/detection/mini_test.rb
mocha-1.1.0 lib/mocha/detection/mini_test.rb
mocha-1.0.0 lib/mocha/detection/mini_test.rb
mocha-1.0.0.alpha lib/mocha/detection/mini_test.rb