Sha256: 423adad8ed3383d76a868ebe971cefbe91ac1ec3ce8249ffa9258545bbe86baa

Contents?: true

Size: 713 Bytes

Versions: 6

Compression:

Stored size: 713 Bytes

Contents

Feature: mock with rr

  As an RSpec user who prefers rr
  I want to be able to use rr without rspec mocks interfering

  Scenario: Mock with rr
    Given a file named "rr_example_spec.rb" with:
      """
      Spec::Runner.configure do |config|
        config.mock_with :rr
      end

      describe "plugging in rr" do
        it "allows rr to be used" do
          target = Object.new
          mock(target).foo
          target.foo
        end

        it "does not include rspec mocks" do
          Spec.const_defined?(:Mocks).should be_false
        end
      end
      """
    When I run "spec rr_example_spec.rb"
    Then the exit code should be 0
    And the stdout should match "2 examples, 0 failures"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rspec-1.2.7 features/mock_framework_integration/use_rr.feature
rspec-1.2.8 features/mock_framework_integration/use_rr.feature
rspec-1.2.3 features/mock_framework_integration/use_rr.feature
rspec-1.2.4 features/mock_framework_integration/use_rr.feature
rspec-1.2.5 features/mock_framework_integration/use_rr.feature
rspec-1.2.6 features/mock_framework_integration/use_rr.feature