Skip to content

Instantly share code, notes, and snippets.

@adammck
Created January 25, 2013 16:52
Show Gist options
  • Save adammck/4635994 to your computer and use it in GitHub Desktop.
Save adammck/4635994 to your computer and use it in GitHub Desktop.
Stub out all Elastic Search queries with a 500 error
FakeWeb.register_uri(:any, %r{^http://(.+?):9200/}, :body=>"", :status=>500)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment