summaryrefslogtreecommitdiff
path: root/spec/requests
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-03-13 16:13:12 -0600
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-04-05 17:44:14 +0100
commit9c30b0e918ca035d8555de5e3393247f6d00ed16 (patch)
tree7aeea9695748036cf465952711184f2469427fab /spec/requests
parent336016fa858dfa48b9f9e9b5b2d9c3a9000fffe5 (diff)
downloadgitlab-ce-9c30b0e918ca035d8555de5e3393247f6d00ed16.tar.gz
Fix some specs
Diffstat (limited to 'spec/requests')
-rw-r--r--spec/requests/api/issues_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/requests/api/issues_spec.rb b/spec/requests/api/issues_spec.rb
index 4729adba11c..504ff19a17f 100644
--- a/spec/requests/api/issues_spec.rb
+++ b/spec/requests/api/issues_spec.rb
@@ -953,7 +953,7 @@ describe API::Issues, api: true do
end
context 'resolving discussions' do
- let(:discussion) { Discussion.for_diff_notes([create(:diff_note_on_merge_request)]).first }
+ let(:discussion) { create(:diff_note_on_merge_request).to_discussion }
let(:merge_request) { discussion.noteable }
let(:project) { merge_request.source_project }