Sha256: fb45348ae774fe75d3330929904c36b7e09c3ee3ecedd5891aee1a5512fa93aa
Contents?: true
Size: 618 Bytes
Versions: 33
Compression:
Stored size: 618 Bytes
Contents
Feature: mock with rspec As an RSpec user who likes to mock I want to be able to use rspec Scenario: Mock with rspec Given a file named "rspec_example_spec.rb" with: """ RSpec.configure do |config| config.mock_framework = :rspec end describe "plugging in rspec" do it "allows rspec to be used" do target = mock('target') target.should_receive(:foo) target.foo end end """ When I run "rspec ./rspec_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