diff --git a/spec/controllers/projects/notes_controller_spec.rb b/spec/controllers/projects/notes_controller_spec.rb index cb7d04a059ceb9de2ed6452f5dfdea91f4af3658..00bc38b60714e5a33da21d61c532551d311a746b 100644 --- a/spec/controllers/projects/notes_controller_spec.rb +++ b/spec/controllers/projects/notes_controller_spec.rb @@ -16,12 +16,12 @@ describe Projects::NotesController do expect do post(:toggle_award_emoji, namespace_id: project.namespace.path, project_id: project.path, id: note.id, name: "thumbsup") - end.to change { AwardEmoji.count }.by(1) + end.to change { note.award_emoji.count }.by(1) expect(response.status).to eq(200) end - it "removes the already let award emoji" do + it "removes the already awarded emoji" do post(:toggle_award_emoji, namespace_id: project.namespace.path, project_id: project.path, id: note.id, name: "thumbsup")