Created
January 6, 2014 14:34
-
-
Save senny/8283603 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Failure: | |
RootTest#test_exception_behavior [test/integration/root_test.rb:6]: | |
Expected: 200 | |
Actual: 500 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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