Sha256: 4c2a70c6087df4f32c85c8f9cb5a2503bcaea221e085c4cf7dffcc0b7e7b25c3

Contents?: true

Size: 751 Bytes

Versions: 32

Compression:

Stored size: 751 Bytes

Contents

Feature: mock with mocha

  As an RSpec user who prefers mocha
  I want to be able to use mocha without rspec mocks interfering

  Scenario: Mock with mocha
    Given a file named "mocha_example_spec.rb" with:
      """
      Spec::Runner.configure do |config|
        config.mock_with :mocha
      end

      describe "plugging in mocha" do
        it "allows mocha to be used" do
          target = Object.new
          target.expects(:foo).once
          target.foo
        end

        it "does not include rspec mocks" do
          Spec.const_defined?(:Mocks).should be_false
        end
      end
      """
    When I run "spec mocha_example_spec.rb"
    Then the exit code should be 0
    And the stdout should include "2 examples, 0 failures"

Version data entries

32 entries across 32 versions & 11 rubygems

Version Path
rspec-instructure-1.3.3 features/mock_framework_integration/use_mocha.feature
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rspec-1.3.2/features/mock_framework_integration/use_mocha.feature
rspec-1.3.2 features/mock_framework_integration/use_mocha.feature
rspec-1.3.1 features/mock_framework_integration/use_mocha.feature
rspec-1.3.1.rc features/mock_framework_integration/use_mocha.feature
rspec-1.3.0 features/mock_framework_integration/use_mocha.feature
hubbub-0.0.11 lib/vendor/plugins/rspec/features/mock_framework_integration/use_mocha.feature
hubbub-0.0.10 lib/vendor/plugins/rspec/features/mock_framework_integration/use_mocha.feature
hubbub-0.0.9 lib/vendor/plugins/rspec/features/mock_framework_integration/use_mocha.feature
hubbub-0.0.8 lib/vendor/plugins/rspec/features/mock_framework_integration/use_mocha.feature
hubbub-0.0.6 lib/vendor/plugins/rspec/features/mock_framework_integration/use_mocha.feature
simple-templater-0.0.1.4 gems/gems/rspec-1.2.9/features/mock_framework_integration/use_mocha.feature
media-path-0.1.2 vendor/rspec/features/mock_framework_integration/use_mocha.feature
simple-templater-0.0.1.3 vendor/rspec/features/mock_framework_integration/use_mocha.feature
pupu-0.0.2.pre vendor/rspec/features/mock_framework_integration/use_mocha.feature
media-path-0.1.1.pre vendor/rspec/features/mock_framework_integration/use_mocha.feature
simple-templater-0.0.1.2 vendor/rspec/features/mock_framework_integration/use_mocha.feature
media-path-0.1.1 vendor/rspec/features/mock_framework_integration/use_mocha.feature
simple-templater-0.0.1.1 vendor/rspec/features/mock_framework_integration/use_mocha.feature
pupu-0.0.2 vendor/rspec/features/mock_framework_integration/use_mocha.feature