summaryrefslogtreecommitdiff
path: root/spec/requests/api/helpers_spec.rb
diff options
context:
space:
mode:
authorTimothy Andrew <mail@timothyandrew.net>2017-06-20 12:02:25 +0000
committerTimothy Andrew <mail@timothyandrew.net>2017-06-28 07:17:13 +0000
commit0ff1d161920a083e07b5f1629aa395642609b251 (patch)
treebc50385ca002a9de6a7e7a680d1528df46ad1c94 /spec/requests/api/helpers_spec.rb
parentd774825f981a73263c9a6c276c672b0c3e9bf104 (diff)
downloadgitlab-ce-0ff1d161920a083e07b5f1629aa395642609b251.tar.gz
Test OAuth token scope verification in the `API::Users` endpoint
Diffstat (limited to 'spec/requests/api/helpers_spec.rb')
-rw-r--r--spec/requests/api/helpers_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/requests/api/helpers_spec.rb b/spec/requests/api/helpers_spec.rb
index 87d6f46533e..25ec44fa036 100644
--- a/spec/requests/api/helpers_spec.rb
+++ b/spec/requests/api/helpers_spec.rb
@@ -14,7 +14,9 @@ describe API::Helpers do
let(:request) { Rack::Request.new(env) }
let(:header) { }
- before { allow_any_instance_of(self.class).to receive(:options).and_return({}) }
+ before do
+ allow_any_instance_of(self.class).to receive(:options).and_return({})
+ end
def set_env(user_or_token, identifier)
clear_env