Sha256: 0e81e810c2f61f753f2bb5b2919b61c7c6323ad90b2fa2fe237207ecba725627

Contents?: true

Size: 527 Bytes

Versions: 15

Compression:

Stored size: 527 Bytes

Contents

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

module Mocha
  module Integration
    def self.activate
      if [Integration::TestUnit, Integration::MiniTest].map(&:activate).none?
        Deprecation.warning("Test::Unit or MiniTest must be loaded *before* Mocha.")
        Deprecation.warning("If you're integrating with a test library other than Test::Unit or MiniTest, you should use `require 'mocha/api'` instead of `require 'mocha'`.")
      end
    end
  end
end

Version data entries

15 entries across 14 versions & 4 rubygems

Version Path
tnargav-1.3.3 vendor/bundle/ruby/1.9.1/gems/mocha-0.14.0/lib/mocha/integration.rb
challah-1.0.0 vendor/bundle/gems/mocha-0.14.0/lib/mocha/integration.rb
tnargav-1.2.3 vendor/bundle/ruby/1.9.1/gems/mocha-0.14.0/lib/mocha/integration.rb
mocha-0.14.0 lib/mocha/integration.rb
challah-1.0.0.beta3 vendor/bundle/gems/mocha-0.13.3/lib/mocha/integration.rb
mocha-0.14.0.alpha lib/mocha/integration.rb
challah-1.0.0.beta2 vendor/bundle/gems/mocha-0.13.3/lib/mocha/integration.rb
challah-1.0.0.beta vendor/bundle/gems/mocha-0.13.3/lib/mocha/integration.rb
mocha-0.13.3 lib/mocha/integration.rb
mocha-0.13.2 lib/mocha/integration.rb
mocha-0.13.1 lib/mocha/integration.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/mocha-0.13.0/lib/mocha/integration.rb
challah-rolls-0.2.0 vendor/bundle/gems/mocha-0.13.0/lib/mocha/integration.rb
challah-0.8.3 vendor/bundle/gems/mocha-0.13.0/lib/mocha/integration.rb
mocha-0.13.0 lib/mocha/integration.rb