Sha256: 6f31bb0aa040e5e1912d2f91e89b274e1da7eba35ad7a1aa706e70a554361edb

Contents?: true

Size: 599 Bytes

Versions: 7

Compression:

Stored size: 599 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

7 entries across 7 versions & 1 rubygems

Version Path
rspec-core-2.0.0.beta.15 features/mock_framework_integration/use_mocha.feature
rspec-core-2.0.0.beta.14 features/mock_framework_integration/use_mocha.feature
rspec-core-2.0.0.beta.13 features/mock_framework_integration/use_mocha.feature
rspec-core-2.0.0.beta.12 features/mock_framework_integration/use_mocha.feature
rspec-core-2.0.0.beta.11 features/mock_framework_integration/use_mocha.feature
rspec-core-2.0.0.beta.10 features/mock_framework_integration/use_mocha.feature
rspec-core-2.0.0.beta.9 features/mock_framework_integration/use_mocha.feature