Sha256: dc25fa7f5644d3f65bcd0c3c2dd9a75e7e418d4fb369387a263c3d46a9a9a9cd
Contents?: true
Size: 617 Bytes
Versions: 1
Compression:
Stored size: 617 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 "spec rspec_example_spec.rb" Then the stdout should match "1 example, 0 failures" And the exit code should be 0
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-core-2.0.0.a1 | features/mock_framework_integration/use_rspec.feature |