diff options
author | Josh Frye <joshfng@gmail.com> | 2016-01-28 13:23:37 -0500 |
---|---|---|
committer | Josh Frye <joshfng@gmail.com> | 2016-01-28 14:44:45 -0500 |
commit | f3d4f2eac7bcf787a00a6cff694fbfa8969830f4 (patch) | |
tree | eb75f0ab2d3d96a7dfe50edd9dfe02a3bbc4ddea /spec/services/notes | |
parent | c95bc65519993f15fe0fca52db7c315f18053b55 (diff) | |
download | gitlab-ce-f3d4f2eac7bcf787a00a6cff694fbfa8969830f4.tar.gz |
Fix Rubocop errornote-background-job
Diffstat (limited to 'spec/services/notes')
-rw-r--r-- | spec/services/notes/post_process_service_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/services/notes/post_process_service_spec.rb b/spec/services/notes/post_process_service_spec.rb index 6b632f94b90..1a3f339bd64 100644 --- a/spec/services/notes/post_process_service_spec.rb +++ b/spec/services/notes/post_process_service_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe Notes::CreateService, services: true do +describe Notes::PostProcessService, services: true do let(:project) { create(:empty_project) } let(:issue) { create(:issue, project: project) } let(:user) { create(:user) } @@ -17,10 +17,10 @@ describe Notes::CreateService, services: true do @note = Notes::CreateService.new(project, user, note_opts).execute end - it { + it do expect(project).to receive(:execute_hooks) expect(project).to receive(:execute_services) Notes::PostProcessService.new(@note).execute - } + end end end |