diff options
| author | Robert Schilling <rschilling@student.tugraz.at> | 2016-04-12 15:43:29 +0200 |
|---|---|---|
| committer | Robert Schilling <rschilling@student.tugraz.at> | 2016-04-12 15:43:29 +0200 |
| commit | dc39c8372d760eceba50a35505dad8663b9e851e (patch) | |
| tree | f4fbba5d35ea707d430b624a9f63c84649c5211f /spec/services/notes | |
| parent | 49484f9a2c2efb670f044028c555f00378484dd4 (diff) | |
| download | gitlab-ce-dc39c8372d760eceba50a35505dad8663b9e851e.tar.gz | |
Adapt tests to new testing guidelines
Diffstat (limited to 'spec/services/notes')
| -rw-r--r-- | spec/services/notes/delete_service_spec.rb | 9 |
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) |
