Sha256: 0440316810969edb24d54102ba486d4685d6c8994a89118c59c93537e36660b3

Contents?: true

Size: 640 Bytes

Versions: 7

Compression:

Stored size: 640 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 "rspec ./flexmock_example_spec.rb"
    Then I should see "1 example, 0 failures" 
    And the exit status should be 0

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rspec-core-2.0.0.beta.15 features/mock_framework_integration/use_flexmock.feature
rspec-core-2.0.0.beta.14 features/mock_framework_integration/use_flexmock.feature
rspec-core-2.0.0.beta.13 features/mock_framework_integration/use_flexmock.feature
rspec-core-2.0.0.beta.12 features/mock_framework_integration/use_flexmock.feature
rspec-core-2.0.0.beta.11 features/mock_framework_integration/use_flexmock.feature
rspec-core-2.0.0.beta.10 features/mock_framework_integration/use_flexmock.feature
rspec-core-2.0.0.beta.9 features/mock_framework_integration/use_flexmock.feature