mirror of
https://github.com/funamitech/mastodon
synced 2024-11-27 22:38:42 +09:00
Implement pending specs on Status
Implement the two pending specs on `Status`: `reblogs_count` and `favourites_count`.
This commit is contained in:
parent
4e41cd9ab8
commit
4fdeac21f4
@ -91,10 +91,20 @@ RSpec.describe Status, type: :model do
|
||||
end
|
||||
|
||||
describe '#reblogs_count' do
|
||||
pending
|
||||
it 'is the number of reblogs' do
|
||||
Fabricate(:status, account: bob, reblog: subject)
|
||||
Fabricate(:status, account: alice, reblog: subject)
|
||||
|
||||
expect(subject.reblogs_count).to eq 2
|
||||
end
|
||||
end
|
||||
|
||||
describe '#favourites_count' do
|
||||
pending
|
||||
it 'is the number of favorites' do
|
||||
Fabricate(:favourite, account: bob, status: subject)
|
||||
Fabricate(:favourite, account: alice, status: subject)
|
||||
|
||||
expect(subject.favourites_count).to eq 2
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user