merge_request_spec.rb 425 Bytes
Newer Older
1 2
require 'spec_helper'

3
describe 'Discussion Comments Merge Request', :js do
4
  let(:user) { create(:user) }
5
  let(:project) { create(:project, :repository) }
6 7 8
  let(:merge_request) { create(:merge_request, source_project: project) }

  before do
9
    project.add_maintainer(user)
10
    sign_in(user)
11

12
    visit project_merge_request_path(project, merge_request)
13 14 15 16
  end

  it_behaves_like 'discussion comments', 'merge request'
end