2019-07-25 01:24:42 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-08-29 03:56:52 -04:00
|
|
|
require 'spec_helper'
|
2017-02-02 04:31:09 -05:00
|
|
|
|
2017-06-29 00:13:10 -04:00
|
|
|
describe 'Group label on issue' do
|
2017-02-02 04:31:09 -05:00
|
|
|
it 'renders link to the project issues page' do
|
|
|
|
group = create(:group)
|
2017-08-02 15:55:11 -04:00
|
|
|
project = create(:project, :public, namespace: group)
|
2017-02-02 04:31:09 -05:00
|
|
|
feature = create(:group_label, group: group, title: 'feature')
|
|
|
|
issue = create(:labeled_issue, project: project, labels: [feature])
|
2017-06-29 13:06:35 -04:00
|
|
|
label_link = project_issues_path(project, label_name: [feature.name])
|
2017-02-02 04:31:09 -05:00
|
|
|
|
2017-06-29 13:06:35 -04:00
|
|
|
visit project_issue_path(project, issue)
|
2017-02-02 04:31:09 -05:00
|
|
|
|
|
|
|
link = find('.issuable-show-labels a')
|
|
|
|
|
|
|
|
expect(link[:href]).to eq(label_link)
|
|
|
|
end
|
|
|
|
end
|