Sha256: 14a406647969886c0f4cfbdd02bf8bdb71971a78b54e50e63910e9b9c9df4cce

Contents?: true

Size: 597 Bytes

Versions: 9

Compression:

Stored size: 597 Bytes

Contents

Feature: mock with mocha

  As an RSpec user who likes to mock
  I want to be able to use mocha

  Scenario: Mock with mocha
    Given a file named "mocha_example_spec.rb" with:
      """
      Rspec.configure do |config|
        config.mock_framework = :mocha
      end

      describe "plugging in mocha" do
        it "allows mocha to be used" do
          target = Object.new
          target.expects(:foo).once
          target.foo
        end
      end
      """
    When I run "rspec mocha_example_spec.rb"
    Then I should see "1 example, 0 failures" 
    And the exit status should be 0

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rspec-core-2.0.0.beta.8 features/mock_framework_integration/use_mocha.feature
rspec-core-2.0.0.beta.7 features/mock_framework_integration/use_mocha.feature
rspec-core-2.0.0.beta.6 features/mock_framework_integration/use_mocha.feature
rspec-core-2.0.0.beta.5 features/mock_framework_integration/use_mocha.feature
rspec-core-2.0.0.beta.4 features/mock_framework_integration/use_mocha.feature
rspec-core-2.0.0.beta.3 features/mock_framework_integration/use_mocha.feature
rspec-core-2.0.0.beta.2 features/mock_framework_integration/use_mocha.feature
rspec-core-2.0.0.beta.1 features/mock_framework_integration/use_mocha.feature
rspec-core-2.0.0.a10 features/mock_framework_integration/use_mocha.feature