Skip to content

Instantly share code, notes, and snippets.

@senny
Created January 6, 2014 14:34
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 senny/8283603 to your computer and use it in GitHub Desktop.
Save senny/8283603 to your computer and use it in GitHub Desktop.
1) Failure:
RootTest#test_exception_behavior [test/integration/root_test.rb:6]:
Expected: 200
Actual: 500
1) Error:
RootTest#test_exception_behavior:
ZeroDivisionError: divided by 0
app/controllers/users_controller.rb:3:in `/'
app/controllers/users_controller.rb:3:in `show'
test/integration/root_test.rb:5:in `block in <class:RootTest>'
require 'test_helper'
class RootTest < ActionDispatch::IntegrationTest
test "exception behavior" do
get "/users/1"
assert_equal 200, status
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment