2
0

Add Status#only_reblogs scope for annual report classes (#35141)

This commit is contained in:
Matt Jankowski
2025-06-24 02:54:55 -04:00
committed by GitHub
parent 16057f550d
commit 36f01af6c4
5 changed files with 15 additions and 3 deletions

View File

@@ -352,6 +352,17 @@ RSpec.describe Status do
end
end
describe '.only_reblogs' do
let!(:status) { Fabricate :status }
let!(:reblog) { Fabricate :status, reblog: Fabricate(:status) }
it 'returns the expected statuses' do
expect(described_class.only_reblogs)
.to include(reblog)
.and not_include(status)
end
end
describe '.tagged_with' do
let(:tag_cats) { Fabricate(:tag, name: 'cats') }
let(:tag_dogs) { Fabricate(:tag, name: 'dogs') }