mirror of
https://github.com/funamitech/mastodon
synced 2024-12-03 01:09:08 +09:00
Fix glitch-soc-only test being broken by refactor of the surrounding tests
This commit is contained in:
parent
6c99479ef4
commit
e5978184a6
@ -68,15 +68,15 @@ describe TagFeed, type: :service do
|
|||||||
end
|
end
|
||||||
|
|
||||||
context 'when the feed contains a local-only status' do
|
context 'when the feed contains a local-only status' do
|
||||||
let!(:status) { Fabricate(:status, tags: [tag1], local_only: true) }
|
let!(:status) { Fabricate(:status, tags: [tag_cats], local_only: true) }
|
||||||
|
|
||||||
it 'does not show local-only statuses without a viewer' do
|
it 'does not show local-only statuses without a viewer' do
|
||||||
results = described_class.new(tag1, nil).get(20)
|
results = described_class.new(tag_cats, nil).get(20)
|
||||||
expect(results).to_not include(status)
|
expect(results).to_not include(status)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'shows local-only statuses given a viewer' do
|
it 'shows local-only statuses given a viewer' do
|
||||||
results = described_class.new(tag1, account).get(20)
|
results = described_class.new(tag_cats, account).get(20)
|
||||||
expect(results).to include(status)
|
expect(results).to include(status)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user