Sha256: 91cd102de6ee77f7b5782ed13597f9d112886ad2e1f42553d252f80cbc952a6f

Contents?: true

Size: 646 Bytes

Versions: 4

Compression:

Stored size: 646 Bytes

Contents

Feature: mock with flexmock

  As an RSpec user who likes to mock
  I want to be able to use flexmock

  Scenario: Mock with flexmock
    Given a file named "flexmock_example_spec.rb" with:
      """
      Rspec.configure do |config|
        config.mock_framework = :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
      end
      """
    When I run "spec flexmock_example_spec.rb"
    Then the stdout should match "1 example, 0 failures" 
    And the exit code should be 0

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rspec-core-2.0.0.a9 features/mock_framework_integration/use_flexmock.feature
rspec-core-2.0.0.a8 features/mock_framework_integration/use_flexmock.feature
rspec-core-2.0.0.a7 features/mock_framework_integration/use_flexmock.feature
rspec-core-2.0.0.a6 features/mock_framework_integration/use_flexmock.feature