summaryrefslogtreecommitdiff
path: root/spec/javascripts/fixtures
diff options
context:
space:
mode:
authorSimon Knox <simon@gitlab.com>2018-07-05 22:10:38 +0000
committerFatih Acet <acetfatih@gmail.com>2018-07-05 22:10:38 +0000
commit9dc6b0399767985c8e0cb1b6b34aff3acd631780 (patch)
tree9ca691600ba30fa0e834e5fed16b74f00d484bda /spec/javascripts/fixtures
parent5e70a09480fba717b4d73c014e3ba71f4679b9a4 (diff)
downloadgitlab-ce-9dc6b0399767985c8e0cb1b6b34aff3acd631780.tar.gz
Resolve "MRs are showing some discussions as unresolved"
Diffstat (limited to 'spec/javascripts/fixtures')
-rw-r--r--spec/javascripts/fixtures/merge_requests.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/javascripts/fixtures/merge_requests.rb b/spec/javascripts/fixtures/merge_requests.rb
index ee60489eb7c..7257d0c8556 100644
--- a/spec/javascripts/fixtures/merge_requests.rb
+++ b/spec/javascripts/fixtures/merge_requests.rb
@@ -80,6 +80,13 @@ describe Projects::MergeRequestsController, '(JavaScript fixtures)', type: :cont
render_discussions_json(merge_request, example.description)
end
+ it 'merge_requests/resolved_diff_discussion.json' do |example|
+ note = create(:discussion_note_on_merge_request, :resolved, project: project, author: admin, position: position, noteable: merge_request)
+ create(:system_note, project: project, author: admin, noteable: merge_request, discussion_id: note.discussion.id)
+
+ render_discussions_json(merge_request, example.description)
+ end
+
context 'with image diff' do
let(:merge_request2) { create(:merge_request_with_diffs, :with_image_diffs, source_project: project, title: "Added images") }
let(:image_path) { "files/images/ee_repo_logo.png" }