Sha256: cce5ea1cb070ff768ac702c171f10d67d215d9df048b3fdff84520884d390ddd

Contents?: true

Size: 326 Bytes

Versions: 15

Compression:

Stored size: 326 Bytes

Contents

require 'mocha/integration/test_unit'
require 'mocha/integration/mini_test'

module Mocha
  module Integration
    def self.activate
      return unless [Integration::TestUnit, Integration::MiniTest].map(&:activate).none?
      raise "Test::Unit or Minitest must be loaded *before* `require 'mocha/setup'`."
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
mocha-1.16.1 lib/mocha/integration.rb
mocha-1.15.1 lib/mocha/integration.rb
mocha-1.16.0 lib/mocha/integration.rb
mocha-1.15.0 lib/mocha/integration.rb
mocha-1.14.0 lib/mocha/integration.rb
mocha-1.13.0 lib/mocha/integration.rb
mocha-1.12.0 lib/mocha/integration.rb
mocha-1.11.2 lib/mocha/integration.rb
mocha-1.11.1 lib/mocha/integration.rb
mocha-1.11.0 lib/mocha/integration.rb
mocha-1.10.2 lib/mocha/integration.rb
mocha-1.10.1 lib/mocha/integration.rb
mocha-1.10.0 lib/mocha/integration.rb
mocha-1.10.0.beta.1 lib/mocha/integration.rb
mocha-1.10.0.alpha lib/mocha/integration.rb