Skip to content

Instantly share code, notes, and snippets.

@sirupsen
Created January 13, 2015 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sirupsen/44f6c7293f25cf69382d to your computer and use it in GitHub Desktop.
Save sirupsen/44f6c7293f25cf69382d to your computer and use it in GitHub Desktop.
Example for blog post
def test_storefront_resilient_to_sessions_down
Toxiproxy[:sessions_data_store].down do
get '/'
assert_equal 'Customer sign in is currently unavailable', flash[:notice]
assert_response :success
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment