forked from cybrespace/mastodon
Merge pull request #1193 from thoughtbot/status-specs
Implement pending specs on Status
This commit is contained in:
commit
c7d9b81d41
|
@ -91,10 +91,20 @@ RSpec.describe Status, type: :model do
|
||||||
end
|
end
|
||||||
|
|
||||||
describe '#reblogs_count' do
|
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
|
end
|
||||||
|
|
||||||
describe '#favourites_count' do
|
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
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue