Created
March 22, 2011 03:49
-
-
Save jonhoman/880740 to your computer and use it in GitHub Desktop.
Example WebMock matcher
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WebMock.should have_requested(:get, "www.example.com") | |
WebMock.should have_requested(:get, "www.example.com").twice | |
WebMock.should have_requested(:post, "www.example.com").with(:headers => 'Content-Type' => 'application/json') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment