Sha256: 9af8148da947d833da9c22c9ef61a315a7f517c65aed53a1707fc2063bff34e8
Contents?: true
Size: 653 Bytes
Versions: 33
Compression:
Stored size: 653 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 the output should contain "1 example, 0 failures" And the exit status should be 0
Version data entries
33 entries across 33 versions & 3 rubygems