Skip to content

Instantly share code, notes, and snippets.

@ctweney
Created April 2, 2015 20:44
Show Gist options
  • Save ctweney/0df393c9c07b9d854962 to your computer and use it in GitHub Desktop.
Save ctweney/0df393c9c07b9d854962 to your computer and use it in GitHub Desktop.
def mock_request
# Webmock match criteria need an adjustment because of basic authentication.
feed_uri = URI.parse(@settings.base_url)
{
method: :any,
uri: /.*#{feed_uri.hostname}#{feed_uri.path}.*/
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment