about summary refs log tree commit diff
path: root/spec/controllers/api/v1/mutes_controller_spec.rb
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-20 00:14:10 -0500
committerGitHub <noreply@github.com>2023-02-20 06:14:10 +0100
commitbf785df9fe044f2f13bfb93e6860a74084d8eb8a (patch)
tree9e4c5263c97b69f2359ef1105df23530521e13f5 /spec/controllers/api/v1/mutes_controller_spec.rb
parent4552685f6bd400666ec4058783eeabb11568e575 (diff)
Audofix Rubocop Style/WordArray (#23739)
Diffstat (limited to 'spec/controllers/api/v1/mutes_controller_spec.rb')
-rw-r--r--spec/controllers/api/v1/mutes_controller_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/api/v1/mutes_controller_spec.rb b/spec/controllers/api/v1/mutes_controller_spec.rb
index 8176815d4..8288cb815 100644
--- a/spec/controllers/api/v1/mutes_controller_spec.rb
+++ b/spec/controllers/api/v1/mutes_controller_spec.rb
@@ -37,13 +37,13 @@ RSpec.describe Api::V1::MutesController, type: :controller do
     it 'sets pagination header for next path' do
       mutes = 2.times.map { Fabricate(:mute, account: user.account) }
       get :index, params: { limit: 1, since_id: mutes[0] }
-      expect(response.headers['Link'].find_link(['rel', 'next']).href).to eq api_v1_mutes_url(limit: 1, max_id: mutes[1])
+      expect(response.headers['Link'].find_link(%w(rel next)).href).to eq api_v1_mutes_url(limit: 1, max_id: mutes[1])
     end
 
     it 'sets pagination header for previous path' do
       mute = Fabricate(:mute, account: user.account)
       get :index
-      expect(response.headers['Link'].find_link(['rel', 'prev']).href).to eq api_v1_mutes_url(since_id: mute)
+      expect(response.headers['Link'].find_link(%w(rel prev)).href).to eq api_v1_mutes_url(since_id: mute)
     end
 
     it 'returns http success' do