Permalink
Browse files

Fixed syntax error in README examples

  • Loading branch information...
1 parent 8746064 commit c109d9571574b5a823bac5cfd0997f808d504256 @fb3 fb3 committed May 25, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
@@ -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 c109d95

Please sign in to comment.