Commit 29269e45 authored by Alejandro Rodríguez's avatar Alejandro Rodríguez

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.
parent fbfd9815
...@@ -46,7 +46,7 @@ describe API::Helpers, api: true do ...@@ -46,7 +46,7 @@ describe API::Helpers, api: true do
end end
def error!(message, status) def error!(message, status)
raise Exception raise Exception.new("#{status} - #{message}")
end end
describe ".current_user" do describe ".current_user" do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment