diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-01-19 23:41:12 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-01-19 23:41:12 +0100 |
commit | d8e440c8e05472b44a8e6cc59aecb6c53ba5a1d7 (patch) | |
tree | 0458eb72ec80af481f080d7e334efed8dc369e86 /spec/requests/api/helpers_spec.rb | |
parent | a5afcf0f377f63897b873ce75c814098bde3f1f3 (diff) | |
download | gitlab-ce-d8e440c8e05472b44a8e6cc59aecb6c53ba5a1d7.tar.gz |
Fix specs
Diffstat (limited to 'spec/requests/api/helpers_spec.rb')
-rw-r--r-- | spec/requests/api/helpers_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/requests/api/helpers_spec.rb b/spec/requests/api/helpers_spec.rb index b8ee2293a33..a89676fec93 100644 --- a/spec/requests/api/helpers_spec.rb +++ b/spec/requests/api/helpers_spec.rb @@ -12,6 +12,7 @@ describe API::Helpers, api: true do let(:params) { {} } let(:env) { { 'REQUEST_METHOD' => 'GET' } } let(:request) { Rack::Request.new(env) } + let(:header) { } def set_env(user_or_token, identifier) clear_env @@ -46,7 +47,7 @@ describe API::Helpers, api: true do allow_any_instance_of(self.class).to receive(:doorkeeper_guard){ value } end - def error!(message, status) + def error!(message, status, header) raise Exception.new("#{status} - #{message}") end |