Commit fc809d68 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'fix/rubocop-offense-in-specs' into 'master'

Fix rubocop offense in awardable specs

Fixes failing tests on master.

See merge request !4481
parents cc0ea13d b75945e9
......@@ -38,12 +38,11 @@ describe Issue, "Awardable" do
describe "#toggle_award_emoji" do
it "adds an emoji if it isn't awarded yet" do
expect { issue.toggle_award_emoji("thumbsup", award_emoji.user) }.to change { AwardEmoji.count }.by 1
expect { issue.toggle_award_emoji("thumbsup", award_emoji.user) }.to change { AwardEmoji.count }.by(1)
end
it "toggles already awarded emoji" do
expect { issue.toggle_award_emoji("thumbsdown", award_emoji.user) }.to change { AwardEmoji.count }.by -1
expect { issue.toggle_award_emoji("thumbsdown", award_emoji.user) }.to change { AwardEmoji.count }.by(-1)
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment