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