Sha256: 5dfb094724cc5929ffde5883efa6ed0b39808b951e14c32644768fa32b248cd4

Contents?: true

Size: 638 Bytes

Versions: 9

Compression:

Stored size: 638 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

9 entries across 9 versions & 1 rubygems

Version Path
rspec-core-2.0.0.beta.8 features/mock_framework_integration/use_flexmock.feature
rspec-core-2.0.0.beta.7 features/mock_framework_integration/use_flexmock.feature
rspec-core-2.0.0.beta.6 features/mock_framework_integration/use_flexmock.feature
rspec-core-2.0.0.beta.5 features/mock_framework_integration/use_flexmock.feature
rspec-core-2.0.0.beta.4 features/mock_framework_integration/use_flexmock.feature
rspec-core-2.0.0.beta.3 features/mock_framework_integration/use_flexmock.feature
rspec-core-2.0.0.beta.2 features/mock_framework_integration/use_flexmock.feature
rspec-core-2.0.0.beta.1 features/mock_framework_integration/use_flexmock.feature
rspec-core-2.0.0.a10 features/mock_framework_integration/use_flexmock.feature