2017-02-02 04:31:09 -05:00
|
|
|
require 'rails_helper'
|
|
|
|
|
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
|