Update rubocop-rspec to version 3.6.0 (#34497)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user