Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…k/cucumber'
  • Loading branch information...
commit 5d4559bd63258c5460c8396d167c32219f3c6346 1 parent 9dc9116
@bblimke authored
Showing with 9 additions and 2 deletions.
  1. +1 −2  README.md
  2. +8 −0 lib/webmock/cucumber.rb
View
3  README.md
@@ -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
8 lib/webmock/cucumber.rb
@@ -0,0 +1,8 @@
+require 'webmock'
+require 'webmock/rspec/matchers'
+
+World(WebMock::API, WebMock::Matchers)
+
+After do
+ WebMock.reset!
+end
Please sign in to comment.
Something went wrong with that request. Please try again.