Sha256: 2d42e1ec24ae3ad9ef7a1ad0ceb6d5c3a7122fa230250199fb04117168b4d0cf

Contents?: true

Size: 612 Bytes

Versions: 4

Compression:

Stored size: 612 Bytes

Contents

Feature: mock with rspec

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

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

      describe "plugging in rspec" do
        it "allows rspec to be used" do
          target = mock('target')
          target.should_receive(:foo)
          target.foo
        end
      end
      """
    When I run "rspec rspec_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_rspec.feature
rspec-core-2.0.0.a8 features/mock_framework_integration/use_rspec.feature
rspec-core-2.0.0.a7 features/mock_framework_integration/use_rspec.feature
rspec-core-2.0.0.a6 features/mock_framework_integration/use_rspec.feature