diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-03-13 16:13:12 -0600 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-04-05 17:44:14 +0100 |
commit | 9c30b0e918ca035d8555de5e3393247f6d00ed16 (patch) | |
tree | 7aeea9695748036cf465952711184f2469427fab /spec/requests | |
parent | 336016fa858dfa48b9f9e9b5b2d9c3a9000fffe5 (diff) | |
download | gitlab-ce-9c30b0e918ca035d8555de5e3393247f6d00ed16.tar.gz |
Fix some specs
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/api/issues_spec.rb | 2 |
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 } |