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:
Diffstat (limited to 'spec/services/notes/create_service_spec.rb')
-rw-r--r--spec/services/notes/create_service_spec.rb26
1 files changed, 0 insertions, 26 deletions
diff --git a/spec/services/notes/create_service_spec.rb b/spec/services/notes/create_service_spec.rb
deleted file mode 100644
index 1a02299bf19..00000000000
--- a/spec/services/notes/create_service_spec.rb
+++ /dev/null
@@ -1,26 +0,0 @@
-require 'spec_helper'
-
-describe Notes::CreateService do
- let(:project) { create(:empty_project) }
- let(:issue) { create(:issue, project: project) }
- let(:user) { create(:user) }
-
- describe :execute do
- context "valid params" do
- before do
- project.team << [user, :master]
- opts = {
- note: 'Awesome comment',
- noteable_type: 'Issue',
- noteable_id: issue.id
- }
-
- @note = Notes::CreateService.new(project, user, opts).execute
- end
-
- it { expect(@note).to be_valid }
- it { expect(@note.note).to eq('Awesome comment') }
- end
- end
-end
-