Fix RSpec/ContextWording cop (#24739)
This commit is contained in:
@ -83,7 +83,7 @@ RSpec.describe Admin::DomainBlocksController, type: :controller do
|
||||
BlockDomainService.new.call(domain_block)
|
||||
end
|
||||
|
||||
context 'downgrading a domain suspension to silence' do
|
||||
context 'when downgrading a domain suspension to silence' do
|
||||
let(:original_severity) { 'suspend' }
|
||||
let(:new_severity) { 'silence' }
|
||||
|
||||
@ -100,7 +100,7 @@ RSpec.describe Admin::DomainBlocksController, type: :controller do
|
||||
end
|
||||
end
|
||||
|
||||
context 'upgrading a domain silence to suspend' do
|
||||
context 'when upgrading a domain silence to suspend' do
|
||||
let(:original_severity) { 'silence' }
|
||||
let(:new_severity) { 'suspend' }
|
||||
|
||||
|
@ -146,13 +146,13 @@ describe Admin::Reports::ActionsController do
|
||||
end
|
||||
end
|
||||
|
||||
context 'action as submit button' do
|
||||
context 'with Action as submit button' do
|
||||
subject { post :create, params: common_params.merge({ action => '' }) }
|
||||
|
||||
it_behaves_like 'all action types'
|
||||
end
|
||||
|
||||
context 'action as submit button' do
|
||||
context 'with Action as submit button' do
|
||||
subject { post :create, params: common_params.merge({ moderation_action: action }) }
|
||||
|
||||
it_behaves_like 'all action types'
|
||||
|
@ -30,7 +30,7 @@ describe Admin::StatusesController do
|
||||
end
|
||||
end
|
||||
|
||||
context 'filtering by media' do
|
||||
context 'when filtering by media' do
|
||||
before do
|
||||
get :index, params: { account_id: account.id, media: '1' }
|
||||
end
|
||||
|
Reference in New Issue
Block a user