Sha256: c99feb736c9a3b40f2a1741f0d436a09bfe6291c40f7204bbe0925e1aa3de291

Contents?: true

Size: 691 Bytes

Versions: 13

Compression:

Stored size: 691 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 the following spec:
      """
      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 it with the spec command
    Then the exit code should be 0
    And the stdout should match "2 examples, 0 failures"

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
dchelimsky-rspec-1.1.99.1 features/mock_framework_integration/use_rr.feature
dchelimsky-rspec-1.1.99.13 features/mock_framework_integration/use_rr.feature
dchelimsky-rspec-1.1.99.2 features/mock_framework_integration/use_rr.feature
dchelimsky-rspec-1.1.99.3 features/mock_framework_integration/use_rr.feature
dchelimsky-rspec-1.1.99.4 features/mock_framework_integration/use_rr.feature
dchelimsky-rspec-1.1.99.5 features/mock_framework_integration/use_rr.feature
dchelimsky-rspec-1.1.99.6 features/mock_framework_integration/use_rr.feature
dchelimsky-rspec-1.1.99.7 features/mock_framework_integration/use_rr.feature
dchelimsky-rspec-1.1.99.8 features/mock_framework_integration/use_rr.feature
dchelimsky-rspec-1.1.99.9 features/mock_framework_integration/use_rr.feature
rspec-1.2.2 features/mock_framework_integration/use_rr.feature
rspec-1.2.1 features/mock_framework_integration/use_rr.feature
rspec-1.2.0 features/mock_framework_integration/use_rr.feature