Skip to content

Commit

Permalink
Merge pull request bblimke#98 from nfedyashev/patch-1
Browse files Browse the repository at this point in the history
Fixed syntax error in README examples
  • Loading branch information
James Conroy-Finn committed May 26, 2011
2 parents 8746064 + c109d95 commit 2268e16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ This forces WebMock Net::HTTP adapter to always connect on `Net::HTTP.start`.
WebMock.should have_requested(:get, "www.example.com").with(:query => {"a" => ["b", "c"]})

WebMock.should have_requested(:get, "www.example.com").
with(:body => {"a" => ["b", "c"]}, :headers => 'Content-Type' => 'application/json')
with(:body => {"a" => ["b", "c"]}, :headers => {'Content-Type' => 'application/json'})

### Different way of setting expectations in RSpec

Expand All @@ -380,7 +380,7 @@ This forces WebMock Net::HTTP adapter to always connect on `Net::HTTP.start`.
a_request(:get, "www.example.com").with(:query => {"a" => ["b", "c"]}).should have_been_made

a_request(:post, "www.example.com").
with(:body => {"a" => ["b", "c"]}, :headers => 'Content-Type' => 'application/json').should have_been_made
with(:body => {"a" => ["b", "c"]}, :headers => {'Content-Type' => 'application/json'}).should have_been_made

## Clearing stubs and request history

Expand Down

0 comments on commit 2268e16

Please sign in to comment.