diff options
author | elijah <elijah@riseup.net> | 2014-12-09 11:11:50 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-12-09 11:11:50 -0800 |
commit | 723caa71b527132bc58ed5daeacbabdbf59b7199 (patch) | |
tree | 94af5ce1a8f5a379b13769a43ac5177a5153e746 /tests/helpers/http_helper.rb | |
parent | 464dd67958c4a81ee9111b0d33217842b60b5b9e (diff) |
added http verb to test error messages
Diffstat (limited to 'tests/helpers/http_helper.rb')
-rw-r--r-- | tests/helpers/http_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/helpers/http_helper.rb b/tests/helpers/http_helper.rb index c941ef63..0b13b754 100644 --- a/tests/helpers/http_helper.rb +++ b/tests/helpers/http_helper.rb @@ -93,9 +93,9 @@ class LeapTest yield(response, body) if block.arity == 2 end elsif response - fail ["Expected a 200 status code from #{url}, but got #{response.code} instead.", error_msg, body].compact.join("\n") + fail ["Expected a 200 status code from #{method} #{url}, but got #{response.code} instead.", error_msg, body].compact.join("\n") else - fail ["Expected a response from #{url}, but got \"#{error}\" instead.", error_msg, body].compact.join("\n"), error + fail ["Expected a response from #{method} #{url}, but got \"#{error}\" instead.", error_msg, body].compact.join("\n"), error end end end |