Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Commit

Permalink
added 'spec/stubs/cucumber' to plug RSpec's stubbing framework into
Browse files Browse the repository at this point in the history
Cucumber scenarios.
  • Loading branch information
dchelimsky committed Jul 9, 2009
1 parent 141dce7 commit 7f1ea7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions History.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* should and should_not accept optional custom message
(suggestion from Rob Sanheim)
* result.should be_nil, "expected result to be nil"
* added 'spec/stubs/cucumber' to plug RSpec's stubbing framework into
Cucumber scenarios.

* bug fixes
* fixed --line option for ruby 1.9.1
Expand Down
4 changes: 4 additions & 0 deletions lib/spec/stubs/cucumber.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# This plugs RSpec's mocking/stubbing framework into cucumber
Before {$rspec_stubs ||= Spec::Mocks::Space.new}
After {$rspec_stubs.reset_all}
World(Spec::Mocks::ExampleMethods)

0 comments on commit 7f1ea7f

Please sign in to comment.