mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 08:19:05 +00:00
Fix spacing in some FeedManager examples.
This commit is contained in:
@@ -175,7 +175,7 @@ RSpec.describe FeedManager do
|
|||||||
it 'returns true for a status with a tag that matches a muted keyword' do
|
it 'returns true for a status with a tag that matches a muted keyword' do
|
||||||
Fabricate('Glitch::KeywordMute', account: alice, keyword: 'jorts')
|
Fabricate('Glitch::KeywordMute', account: alice, keyword: 'jorts')
|
||||||
status = Fabricate(:status, account: bob)
|
status = Fabricate(:status, account: bob)
|
||||||
status.tags << Fabricate(:tag, name: 'jorts')
|
status.tags << Fabricate(:tag, name: 'jorts')
|
||||||
|
|
||||||
expect(FeedManager.instance.filter?(:home, status, alice.id)).to be true
|
expect(FeedManager.instance.filter?(:home, status, alice.id)).to be true
|
||||||
end
|
end
|
||||||
@@ -183,7 +183,7 @@ RSpec.describe FeedManager do
|
|||||||
it 'returns true for a status with a tag that matches an octothorpe-prefixed muted keyword' do
|
it 'returns true for a status with a tag that matches an octothorpe-prefixed muted keyword' do
|
||||||
Fabricate('Glitch::KeywordMute', account: alice, keyword: '#jorts')
|
Fabricate('Glitch::KeywordMute', account: alice, keyword: '#jorts')
|
||||||
status = Fabricate(:status, account: bob)
|
status = Fabricate(:status, account: bob)
|
||||||
status.tags << Fabricate(:tag, name: 'jorts')
|
status.tags << Fabricate(:tag, name: 'jorts')
|
||||||
|
|
||||||
expect(FeedManager.instance.filter?(:home, status, alice.id)).to be true
|
expect(FeedManager.instance.filter?(:home, status, alice.id)).to be true
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user