Sha256: 39af22b9cb7dcf055edc911328dd25c4b166262c3955dc78f77593723f93a230

Contents?: true

Size: 715 Bytes

Versions: 32

Compression:

Stored size: 715 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 include "2 examples, 0 failures"

Version data entries

32 entries across 32 versions & 11 rubygems

Version Path
rspec-instructure-1.3.3 features/mock_framework_integration/use_rr.feature
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rspec-1.3.2/features/mock_framework_integration/use_rr.feature
rspec-1.3.2 features/mock_framework_integration/use_rr.feature
rspec-1.3.1 features/mock_framework_integration/use_rr.feature
rspec-1.3.1.rc features/mock_framework_integration/use_rr.feature
rspec-1.3.0 features/mock_framework_integration/use_rr.feature
hubbub-0.0.11 lib/vendor/plugins/rspec/features/mock_framework_integration/use_rr.feature
hubbub-0.0.10 lib/vendor/plugins/rspec/features/mock_framework_integration/use_rr.feature
hubbub-0.0.9 lib/vendor/plugins/rspec/features/mock_framework_integration/use_rr.feature
hubbub-0.0.8 lib/vendor/plugins/rspec/features/mock_framework_integration/use_rr.feature
hubbub-0.0.6 lib/vendor/plugins/rspec/features/mock_framework_integration/use_rr.feature
simple-templater-0.0.1.4 gems/gems/rspec-1.2.9/features/mock_framework_integration/use_rr.feature
media-path-0.1.2 vendor/rspec/features/mock_framework_integration/use_rr.feature
simple-templater-0.0.1.3 vendor/rspec/features/mock_framework_integration/use_rr.feature
pupu-0.0.2.pre vendor/rspec/features/mock_framework_integration/use_rr.feature
media-path-0.1.1.pre vendor/rspec/features/mock_framework_integration/use_rr.feature
simple-templater-0.0.1.2 vendor/rspec/features/mock_framework_integration/use_rr.feature
media-path-0.1.1 vendor/rspec/features/mock_framework_integration/use_rr.feature
simple-templater-0.0.1.1 vendor/rspec/features/mock_framework_integration/use_rr.feature
pupu-0.0.2 vendor/rspec/features/mock_framework_integration/use_rr.feature