Permalink
Browse files

Adding WebMock support to cucumber now requires only: require 'webmoc…

…k/cucumber'
  • Loading branch information...
bblimke committed Nov 3, 2010
1 parent 9dc9116 commit 5d4559bd63258c5460c8396d167c32219f3c6346
Showing with 9 additions and 2 deletions.
  1. +1 −2 README.md
  2. +8 −0 lib/webmock/cucumber.rb
View
@@ -57,8 +57,7 @@ Add the following code to `spec/spec_helper`:
Add the following code to `features/support/env.rb`
- require 'webmock/rspec'
- World(WebMock::API, WebMock::Matchers)
+ require 'webmock/cucumber'
You can also use WebMock outside a test framework:
View
@@ -0,0 +1,8 @@
+require 'webmock'
+require 'webmock/rspec/matchers'
+
+World(WebMock::API, WebMock::Matchers)
+
+After do
+ WebMock.reset!
+end

0 comments on commit 5d4559b

Please sign in to comment.