Sha256: 7dcb3a5b8f7405d5af37d3fe48470b1a05b5f42d23b914a3e83c4e579cb9fb8e

Contents?: true

Size: 759 Bytes

Versions: 15

Compression:

Stored size: 759 Bytes

Contents

Feature: mock with flexmock

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

  Scenario: Mock with flexmock
    Given the following spec:
      """
      Spec::Runner.configure do |config|
        config.mock_with :flexmock
      end

      describe "plugging in flexmock" do
        it "allows flexmock to be used" do
          target = Object.new
          flexmock(target).should_receive(:foo).once
          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

15 entries across 15 versions & 4 rubygems

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