2017-02-02 04:31:09 -05:00
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
describe 'Group label on issue', :feature do
|
|
|
|
it 'renders link to the project issues page' do
|
|
|
|
group = create(:group)
|
|
|
|
project = create(:empty_project, :public, namespace: group)
|
|
|
|
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
|