mant-is/message_bored

reword downvote spec in link_spec

Closed this issue · 1 comments

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