Sha256: b042ba2ce2a324151ba6270948039a7bbe0a04b14491158e89f374d019aee701

Contents?: true

Size: 603 Bytes

Versions: 9

Compression:

Stored size: 603 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 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_rspec.feature
rspec-core-2.0.0.beta.7 features/mock_framework_integration/use_rspec.feature
rspec-core-2.0.0.beta.6 features/mock_framework_integration/use_rspec.feature
rspec-core-2.0.0.beta.5 features/mock_framework_integration/use_rspec.feature
rspec-core-2.0.0.beta.4 features/mock_framework_integration/use_rspec.feature
rspec-core-2.0.0.beta.3 features/mock_framework_integration/use_rspec.feature
rspec-core-2.0.0.beta.2 features/mock_framework_integration/use_rspec.feature
rspec-core-2.0.0.beta.1 features/mock_framework_integration/use_rspec.feature
rspec-core-2.0.0.a10 features/mock_framework_integration/use_rspec.feature