summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-12-09 11:11:50 -0800
committerelijah <elijah@riseup.net>2014-12-09 11:11:50 -0800
commit723caa71b527132bc58ed5daeacbabdbf59b7199 (patch)
tree94af5ce1a8f5a379b13769a43ac5177a5153e746
parent464dd67958c4a81ee9111b0d33217842b60b5b9e (diff)
added http verb to test error messages
-rw-r--r--tests/helpers/http_helper.rb4
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