Sha256: c0faf55efecf24a8c4e407b5d98bd6f8732c3a29aab153c079652bcf942519ff

Contents?: true

Size: 503 Bytes

Versions: 8

Compression:

Stored size: 503 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
        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

8 entries across 8 versions & 1 rubygems

Version Path
mocha-2.5.0 lib/mocha/detection/minitest.rb
mocha-2.4.5 lib/mocha/detection/minitest.rb
mocha-2.4.4 lib/mocha/detection/minitest.rb
mocha-2.4.3 lib/mocha/detection/minitest.rb
mocha-2.4.2 lib/mocha/detection/minitest.rb
mocha-2.4.1 lib/mocha/detection/minitest.rb
mocha-2.4.0 lib/mocha/detection/minitest.rb
mocha-2.2.0 lib/mocha/detection/minitest.rb