Sha256: d2c96a759281e00c34d668aa31fec04f8e5c2358f93d2fc3364f950410f913d1

Contents?: true

Size: 795 Bytes

Versions: 32

Compression:

Stored size: 795 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 a file named "flexmock_example_spec.rb" with:
      """
      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 "spec flexmock_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
rango-0.0.6 vendor/rspec/features/mock_framework_integration/use_flexmock.feature
rango-0.1.pre vendor/rspec/features/mock_framework_integration/use_flexmock.feature
pupu-0.0.1 vendor/rspec/features/mock_framework_integration/use_flexmock.feature
media-path-0.1 vendor/rspec/features/mock_framework_integration/use_flexmock.feature
simple-templater-0.0.1 vendor/rspec/features/mock_framework_integration/use_flexmock.feature
middleman-0.10.17 vendor/gems/gems/rspec-1.2.9/features/mock_framework_integration/use_flexmock.feature
middleman-0.10.16 vendor/gems/gems/rspec-1.2.9/features/mock_framework_integration/use_flexmock.feature
middleman-0.10.15 vendor/gems/gems/rspec-1.2.9/features/mock_framework_integration/use_flexmock.feature
rackjour-0.1.8 vendor/gems/gems/rspec-1.2.9/features/mock_framework_integration/use_flexmock.feature
middleman-0.10.14 vendor/gems/gems/rspec-1.2.9/features/mock_framework_integration/use_flexmock.feature
ageweke-rspec-1.2.9 features/mock_framework_integration/use_flexmock.feature
rspec-1.2.9 features/mock_framework_integration/use_flexmock.feature