about summary refs log tree commit diff
path: root/spec/controllers/api/v1/timelines/tag_controller_spec.rb
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>2017-07-27 22:16:07 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-07-27 15:16:07 +0200
commit4f0b638cda82810c83f89f23e83efefb60375514 (patch)
tree5da8fe32130a4fb6f87499987cc5aa2c8cdf09fc /spec/controllers/api/v1/timelines/tag_controller_spec.rb
parentbb96ba13cf78c0bee1919c32e61bf0644c89a209 (diff)
Introduce access token fabricators (#4401)
Diffstat (limited to 'spec/controllers/api/v1/timelines/tag_controller_spec.rb')
-rw-r--r--spec/controllers/api/v1/timelines/tag_controller_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/api/v1/timelines/tag_controller_spec.rb b/spec/controllers/api/v1/timelines/tag_controller_spec.rb
index f743f0cde..74de1e81f 100644
--- a/spec/controllers/api/v1/timelines/tag_controller_spec.rb
+++ b/spec/controllers/api/v1/timelines/tag_controller_spec.rb
@@ -12,7 +12,7 @@ describe Api::V1::Timelines::TagController do
   end
 
   context 'with a user context' do
-    let(:token) { double acceptable?: true, resource_owner_id: user.id }
+    let(:token) { Fabricate(:accessible_access_token, resource_owner_id: user.id) }
 
     describe 'GET #show' do
       before do
@@ -28,7 +28,7 @@ describe Api::V1::Timelines::TagController do
   end
 
   context 'without a user context' do
-    let(:token) { double acceptable?: true, resource_owner_id: nil }
+    let(:token) { Fabricate(:accessible_access_token, resource_owner_id: nil) }
 
     describe 'GET #show' do
       it 'returns http success' do