reword downvote spec in link_spec
Closed this issue · 1 comments
mant-is commented
Change
RSpec.describe Link, '#downvote' do
it 'decrements upvotes' do
link = build(:link, downvotes: 1)
link.downvote
expect(link.downvotes).to eq 2
end
end
to
RSpec.describe Link, '#downvote' do
it 'increments downvotes' do
link = build(:link, downvotes: 1)
link.downvote
expect(link.downvotes).to eq 2
end
end
be more aware when copy pasta
mant-is commented
closed by commit 5f9367f02d762d3a7b959181cc64f9217433ef56