Update rubocop-rspec to version 3.6.0 (#34497)
This commit is contained in:
parent
22ec828951
commit
6463415e06
41 changed files with 223 additions and 228 deletions
|
|
@ -35,7 +35,7 @@ RSpec.describe RelationshipsController do
|
|||
describe 'PATCH #update' do
|
||||
let(:alice) { Fabricate(:account, username: 'alice', domain: 'example.com') }
|
||||
|
||||
shared_examples 'redirects back to followers page' do
|
||||
shared_examples 'general behavior for followed user' do
|
||||
it 'redirects back to followers page' do
|
||||
alice.follow!(user.account)
|
||||
|
||||
|
|
@ -49,7 +49,7 @@ RSpec.describe RelationshipsController do
|
|||
context 'when select parameter is not provided' do
|
||||
subject { patch :update }
|
||||
|
||||
include_examples 'redirects back to followers page'
|
||||
it_behaves_like 'general behavior for followed user'
|
||||
end
|
||||
|
||||
context 'when select parameter is provided' do
|
||||
|
|
@ -83,7 +83,7 @@ RSpec.describe RelationshipsController do
|
|||
end
|
||||
end
|
||||
|
||||
include_examples 'redirects back to followers page'
|
||||
it_behaves_like 'general behavior for followed user'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue