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