Sha256: 8e8d7466ad6ff91c4a8029b5ca9685396e90b22eb80aa82563eb953e6fe70113

Contents?: true

Size: 578 Bytes

Versions: 5

Compression:

Stored size: 578 Bytes

Contents

Feature: mock with rr

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

  Scenario: Mock with rr
    Given a file named "rr_example_spec.rb" with:
      """
      Rspec::Core.configure do |config|
        config.mock_framework = :rr
      end

      describe "plugging in rr" do
        it "allows rr to be used" do
          target = Object.new
          mock(target).foo
          target.foo
        end
      end
      """
    When I run "spec rr_example_spec.rb"
    Then the stdout should match "1 example, 0 failures" 
    And the exit code should be 0

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rspec-core-2.0.0.a5 features/mock_framework_integration/use_rr.feature
rspec-core-2.0.0.a4 features/mock_framework_integration/use_rr.feature
rspec-core-2.0.0.a3 features/mock_framework_integration/use_rr.feature
rspec-core-2.0.0.a2 features/mock_framework_integration/use_rr.feature
rspec-core-2.0.0.a1 features/mock_framework_integration/use_rr.feature