Fix RSpec/ContextWording cop (#24739)
This commit is contained in:
@@ -56,7 +56,7 @@ RSpec.describe Web::PushSubscription, type: :model do
|
||||
context 'when policy is followed' do
|
||||
let(:policy) { 'followed' }
|
||||
|
||||
context 'and notification is from someone you follow' do
|
||||
context 'when notification is from someone you follow' do
|
||||
before do
|
||||
account.follow!(notification.from_account)
|
||||
end
|
||||
@@ -66,7 +66,7 @@ RSpec.describe Web::PushSubscription, type: :model do
|
||||
end
|
||||
end
|
||||
|
||||
context 'and notification is not from someone you follow' do
|
||||
context 'when notification is not from someone you follow' do
|
||||
it 'returns false' do
|
||||
expect(subject.pushable?(notification)).to be false
|
||||
end
|
||||
@@ -76,7 +76,7 @@ RSpec.describe Web::PushSubscription, type: :model do
|
||||
context 'when policy is follower' do
|
||||
let(:policy) { 'follower' }
|
||||
|
||||
context 'and notification is from someone who follows you' do
|
||||
context 'when notification is from someone who follows you' do
|
||||
before do
|
||||
notification.from_account.follow!(account)
|
||||
end
|
||||
@@ -86,7 +86,7 @@ RSpec.describe Web::PushSubscription, type: :model do
|
||||
end
|
||||
end
|
||||
|
||||
context 'and notification is not from someone who follows you' do
|
||||
context 'when notification is not from someone who follows you' do
|
||||
it 'returns false' do
|
||||
expect(subject.pushable?(notification)).to be false
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user