summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Rodríguez <alejorro70@gmail.com>2016-12-14 12:37:30 -0300
committerAlejandro Rodríguez <alejorro70@gmail.com>2016-12-14 12:37:30 -0300
commit29269e45938e5182ffe0999f5986e5a361daaa85 (patch)
treeb28dca872e9bb0ddad79e5ebcd41ad7f4da4797b
parentfbfd9815854148cd4be5a17f8cc16894d7395b75 (diff)
downloadgitlab-ce-29269e45938e5182ffe0999f5986e5a361daaa85.tar.gz
Fix cherry-pick of !8017
The specs on the cherry-picked MR were counting on a behaviour that was added on https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7843 (an 8.15 MR). We backport the relevant code.
-rw-r--r--spec/requests/api/helpers_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/requests/api/helpers_spec.rb b/spec/requests/api/helpers_spec.rb
index d621155d71e..ca104bd73a7 100644
--- a/spec/requests/api/helpers_spec.rb
+++ b/spec/requests/api/helpers_spec.rb
@@ -46,7 +46,7 @@ describe API::Helpers, api: true do
end
def error!(message, status)
- raise Exception
+ raise Exception.new("#{status} - #{message}")
end
describe ".current_user" do