Skip to content
  • Matthew Draper's avatar
    5e5211e6
    assert_response: unwrap exceptions captured by ShowExceptions · 5e5211e6
    Matthew Draper authored
    If we get back a different response status from the one we were
    expecting, and an exception was rescued, it's likely to be relevant.
    
    Before:
    
    Expected response to be a <200> but was a <500: Internal Server Error>.
    
    After:
    
    Expected response to be a <200> but was a <500: Internal Server Error>.
    
    Exception while processing request: RuntimeError: foo
        <backtrace>
    5e5211e6
    assert_response: unwrap exceptions captured by ShowExceptions
    Matthew Draper authored
    If we get back a different response status from the one we were
    expecting, and an exception was rescued, it's likely to be relevant.
    
    Before:
    
    Expected response to be a <200> but was a <500: Internal Server Error>.
    
    After:
    
    Expected response to be a <200> but was a <500: Internal Server Error>.
    
    Exception while processing request: RuntimeError: foo
        <backtrace>
Loading