Sha256: 4acc294139171329d93d9fb60c71ddc49f9387ad9ab543b2dced2fd4e0d93e63

Contents?: true

Size: 605 Bytes

Versions: 4

Compression:

Stored size: 605 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 "spec mocha_example_spec.rb"
    Then the stdout should match "1 example, 0 failures" 
    And the exit code should be 0

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rspec-core-2.0.0.a9 features/mock_framework_integration/use_mocha.feature
rspec-core-2.0.0.a8 features/mock_framework_integration/use_mocha.feature
rspec-core-2.0.0.a7 features/mock_framework_integration/use_mocha.feature
rspec-core-2.0.0.a6 features/mock_framework_integration/use_mocha.feature