2019-07-25 05:24:42 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-04-12 11:30:28 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-16 18:09:01 +00:00
|
|
|
RSpec.describe 'Thread Comments Issue', :js do
|
2017-04-12 11:30:28 +00:00
|
|
|
let(:user) { create(:user) }
|
2017-08-02 19:55:11 +00:00
|
|
|
let(:project) { create(:project) }
|
2017-04-12 11:30:28 +00:00
|
|
|
let(:issue) { create(:issue, project: project) }
|
|
|
|
|
|
|
|
before do
|
2018-07-11 14:36:08 +00:00
|
|
|
project.add_maintainer(user)
|
2017-06-21 23:44:10 +00:00
|
|
|
sign_in(user)
|
2017-04-12 11:30:28 +00:00
|
|
|
|
2017-07-06 16:20:50 +00:00
|
|
|
visit project_issue_path(project, issue)
|
2017-04-12 11:30:28 +00:00
|
|
|
end
|
|
|
|
|
2019-06-26 11:57:34 +00:00
|
|
|
it_behaves_like 'thread comments', 'issue'
|
2017-04-12 11:30:28 +00:00
|
|
|
end
|