Sha256: 8cd738067e1a229f378068cb2dd98a3d36c4e1a6412dfcc29be8600d76839ca5

Contents?: true

Size: 468 Bytes

Versions: 14

Compression:

Stored size: 468 Bytes

Contents

require 'mocha/standalone'
require 'mocha/object'

module Rspec
  module Core
    module Mocking
      module WithMocha
        # Mocha::Standalone was deprecated as of Mocha 0.9.7.  
        begin
          include Mocha::API
        rescue NameError
          include Mocha::Standalone
        end
        
        alias :_setup_mocks :mocha_setup
        alias :_verify_mocks :mocha_verify
        alias :_teardown_mocks :mocha_teardown

      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rspec-core-2.0.0.beta.4 lib/rspec/core/mocking/with_mocha.rb
rspec-core-2.0.0.beta.3 lib/rspec/core/mocking/with_mocha.rb
rspec-core-2.0.0.beta.2 lib/rspec/core/mocking/with_mocha.rb
rspec-core-2.0.0.beta.1 lib/rspec/core/mocking/with_mocha.rb
rspec-core-2.0.0.a10 lib/rspec/core/mocking/with_mocha.rb
rspec-core-2.0.0.a9 lib/rspec/core/mocking/with_mocha.rb
rspec-core-2.0.0.a8 lib/rspec/core/mocking/with_mocha.rb
rspec-core-2.0.0.a7 lib/rspec/core/mocking/with_mocha.rb
rspec-core-2.0.0.a6 lib/rspec/core/mocking/with_mocha.rb
rspec-core-2.0.0.a5 lib/rspec/core/mocking/with_mocha.rb
rspec-core-2.0.0.a4 lib/rspec/core/mocking/with_mocha.rb
rspec-core-2.0.0.a3 lib/rspec/core/mocking/with_mocha.rb
rspec-core-2.0.0.a2 lib/rspec/core/mocking/with_mocha.rb
rspec-core-2.0.0.a1 lib/rspec/core/mocking/with_mocha.rb