diff options
author | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2016-05-11 22:43:58 +0200 |
---|---|---|
committer | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2016-05-11 22:43:58 +0200 |
commit | 4558b5b9fe9f648903ad0dc01089e6118fe0af34 (patch) | |
tree | 36903f41d1f773de3c8fc69592b714b8d9390e0f /spec/controllers | |
parent | 2f0d89ecff652418a8323990248b681a91f8e05b (diff) | |
download | gitlab-ce-4558b5b9fe9f648903ad0dc01089e6118fe0af34.tar.gz |
Incorporate feedback
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/projects/issues_controller_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/controllers/projects/issues_controller_spec.rb b/spec/controllers/projects/issues_controller_spec.rb index 30d296fdad0..706f538f262 100644 --- a/spec/controllers/projects/issues_controller_spec.rb +++ b/spec/controllers/projects/issues_controller_spec.rb @@ -257,9 +257,9 @@ describe Projects::IssuesController do project.team << [user, :developer] end - it "yields status code 200" do - post(:toggle_award_emoji, namespace_id: project.namespace.path, - project_id: project.path, id: issue.iid, name: "thumbsup") + it "toggles the award emoji" do + expect { post(:toggle_award_emoji, namespace_id: project.namespace.path, + project_id: project.path, id: issue.iid, name: "thumbsup") }.to change { AwardEmoji.count }.by(1) expect(response.status).to eq(200) end |