Skip to content

Instantly share code, notes, and snippets.

@jonhoman
Created March 22, 2011 03:49
Show Gist options
  • Save jonhoman/880740 to your computer and use it in GitHub Desktop.
Save jonhoman/880740 to your computer and use it in GitHub Desktop.
Example WebMock matcher
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