Skip to content
Snippets Groups Projects
Commit c7d9b81d authored by Eugen's avatar Eugen Committed by GitHub
Browse files

Merge pull request #1193 from thoughtbot/status-specs

Implement pending specs on Status
parents 4e41cd9a 4fdeac21
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment