Sha256: e27a47cc398e48b6cfcd8092cf58796f91d0d84e1af143d7e08e0700ce749042

Contents?: true

Size: 449 Bytes

Versions: 36

Compression:

Stored size: 449 Bytes

Contents

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

module RSpec
  module Core
    module MockFrameworkAdapter

      # Mocha::Standalone was deprecated as of Mocha 0.9.7.
      begin
        include Mocha::API
      rescue NameError
        include Mocha::Standalone
      end

      alias :setup_mocks_for_rspec :mocha_setup
      alias :verify_mocks_for_rspec :mocha_verify
      alias :teardown_mocks_for_rspec :mocha_teardown

    end
  end
end

Version data entries

36 entries across 36 versions & 4 rubygems

Version Path
messagebus_ruby_api-0.4.7 spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/mocking/with_mocha.rb
messagebus_ruby_api-0.4.4 spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/mocking/with_mocha.rb
rspec-core-2.5.2 lib/rspec/core/mocking/with_mocha.rb
rspec-core-2.5.1 lib/rspec/core/mocking/with_mocha.rb
rspec-core-2.5.0 lib/rspec/core/mocking/with_mocha.rb
vim-jar-0.1.2.0001 bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/mocking/with_mocha.rb
rspec-core-2.4.0 lib/rspec/core/mocking/with_mocha.rb
vim-jar-0.1.2 bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/mocking/with_mocha.rb
vim-jar-0.1.1 bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/mocking/with_mocha.rb
vim-jar-0.1.0 bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/mocking/with_mocha.rb
rspec-core-2.3.1 lib/rspec/core/mocking/with_mocha.rb
rspec-core-2.3.0 lib/rspec/core/mocking/with_mocha.rb
vim-jar-0.0.3 bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/mocking/with_mocha.rb
rspec-core-2.2.1 lib/rspec/core/mocking/with_mocha.rb
vim-jar-0.0.2 bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/mocking/with_mocha.rb
vim-jar-0.0.1 bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/mocking/with_mocha.rb
rspec-core-2.2.0 lib/rspec/core/mocking/with_mocha.rb
rspec-core-2.1.0 lib/rspec/core/mocking/with_mocha.rb
rspec-core-2.0.1 lib/rspec/core/mocking/with_mocha.rb
gemrage-1.0.0 vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/mocking/with_mocha.rb