about summary refs log tree commit diff
path: root/spec/controllers/api
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-11-21 10:35:09 +0100
committerGitHub <noreply@github.com>2022-11-21 10:35:09 +0100
commit51a33ce77a32b85eaff37670c40a497aaef13e18 (patch)
tree32c1f590733ffbb76901630f6243e62fa22aacfb /spec/controllers/api
parent69378eac99c013a0db7d2d5ff9a54dfcc287d9ce (diff)
Fix not being able to follow more than one hashtag (#21285)
Fixes regression from #20860
Diffstat (limited to 'spec/controllers/api')
-rw-r--r--spec/controllers/api/v1/tags_controller_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/controllers/api/v1/tags_controller_spec.rb b/spec/controllers/api/v1/tags_controller_spec.rb
index ac42660df..216faad87 100644
--- a/spec/controllers/api/v1/tags_controller_spec.rb
+++ b/spec/controllers/api/v1/tags_controller_spec.rb
@@ -33,7 +33,11 @@ RSpec.describe Api::V1::TagsController, type: :controller do
   end
 
   describe 'POST #follow' do
+    let!(:unrelated_tag) { Fabricate(:tag) }
+
     before do
+      TagFollow.create!(account: user.account, tag: unrelated_tag)
+
       post :follow, params: { id: name }
     end