about summary refs log tree commit diff
path: root/spec/controllers/api/v1/bookmarks_controller_spec.rb
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-08-10 15:22:04 +0200
committerThibG <thib@sitedethib.com>2018-08-10 16:49:06 +0200
commit03afc365d530e6d57754ae9dbbdbd0c56431ee02 (patch)
tree58ecbe9865b1cfcca6b08da53e8bb6c5e01e5c9a /spec/controllers/api/v1/bookmarks_controller_spec.rb
parent7d1dd59496189d7b6e81585a01aaaae6fd45a737 (diff)
Introduce OAuth scopes for bookmarks
Diffstat (limited to 'spec/controllers/api/v1/bookmarks_controller_spec.rb')
-rw-r--r--spec/controllers/api/v1/bookmarks_controller_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/api/v1/bookmarks_controller_spec.rb b/spec/controllers/api/v1/bookmarks_controller_spec.rb
index 26130e71b..79601b6e6 100644
--- a/spec/controllers/api/v1/bookmarks_controller_spec.rb
+++ b/spec/controllers/api/v1/bookmarks_controller_spec.rb
@@ -4,7 +4,7 @@ RSpec.describe Api::V1::BookmarksController, type: :controller do
   render_views
 
   let(:user)  { Fabricate(:user) }
-  let(:token) { Fabricate(:accessible_access_token, resource_owner_id: user.id, scopes: 'read') }
+  let(:token) { Fabricate(:accessible_access_token, resource_owner_id: user.id, scopes: 'read:bookmarks') }
 
   describe 'GET #index' do
     context 'without token' do