Permalink
Browse files

Usage clarification formatting for a_request expectation for example

  • Loading branch information...
1 parent 65cf98c commit 7ac1f92b3e96489e2682431c107ad1b0905032a9 @rsachdeva committed Dec 12, 2011
Showing with 9 additions and 6 deletions.
  1. +9 −6 README.md
View
15 README.md
@@ -350,6 +350,15 @@ This forces WebMock Net::HTTP adapter to always connect on `Net::HTTP.start`.
## Setting Expectations
+### Using Expectations
+ These expectations below are set After making request
+
+ # stub_request as usual
+
+ # make request
+
+ # expectation that matches the request made
+
### Setting expectations in Test::Unit
require 'webmock/test_unit'
@@ -377,12 +386,6 @@ This forces WebMock Net::HTTP adapter to always connect on `Net::HTTP.start`.
assert_requested :get, "http://www.example.com" # ===> Success
-### Using Expectations
- These expectations below are set After making request
- # stub_request as usual
- # make request
- # expectation that matches the request made
-
### Setting expectations in RSpec on `WebMock` module
This style is borrowed from [fakeweb-matcher](http://github.com/freelancing-god/fakeweb-matcher)

0 comments on commit 7ac1f92

Please sign in to comment.