Skip to content
Browse files

Merge pull request #98 from nfedyashev/patch-1

Fixed syntax error in README examples
  • Loading branch information...
2 parents 8746064 + c109d95 commit 2268e165d6081c42b180251cfee53ac046ac6049 @jcf jcf committed May 26, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
4 README.md
@@ -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
@@ -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

0 comments on commit 2268e16

Please sign in to comment.
Something went wrong with that request. Please try again.