Sha256: 13ce28fb39f8d59de0ce0499f50c72712ddb6da9fe3177f9a6a551d536acea7d
Contents?: true
Size: 618 Bytes
Versions: 4
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::Core.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 stdout should match "1 example, 0 failures" And the exit code should be 0
Version data entries
4 entries across 4 versions & 1 rubygems