Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2016-04-12 16:43:29 +0300
committerRobert Schilling <rschilling@student.tugraz.at>2016-04-12 16:43:29 +0300
commitdc39c8372d760eceba50a35505dad8663b9e851e (patch)
treef4fbba5d35ea707d430b624a9f63c84649c5211f /spec/services/notes
parent49484f9a2c2efb670f044028c555f00378484dd4 (diff)
Adapt tests to new testing guidelines
Diffstat (limited to 'spec/services/notes')
-rw-r--r--spec/services/notes/delete_service_spec.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/services/notes/delete_service_spec.rb b/spec/services/notes/delete_service_spec.rb
index 07aa57c4642..1d0a747a480 100644
--- a/spec/services/notes/delete_service_spec.rb
+++ b/spec/services/notes/delete_service_spec.rb
@@ -1,13 +1,12 @@
require 'spec_helper'
describe Notes::DeleteService, services: true do
- let(:project) { create(:empty_project) }
- let(:issue) { create(:issue, project: project) }
- let(:note) { create(:note, project: project, noteable: issue) }
-
describe '#execute' do
it 'deletes a note' do
- project = note.project
+ project = create(:empty_project)
+ issue = create(:issue, project: project)
+ note = create(:note, project: project, noteable: issue)
+
described_class.new(project, note.author).execute(note)
expect(project.issues.find(issue.id).notes).not_to include(note)