2017-08-17 22:00:37 +05:30
|
|
|
require 'rails_helper'
|
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
describe 'Group label on issue' do
|
2017-08-17 22:00:37 +05:30
|
|
|
it 'renders link to the project issues page' do
|
|
|
|
group = create(:group)
|
2017-09-10 17:25:29 +05:30
|
|
|
project = create(:project, :public, namespace: group)
|
2017-08-17 22:00:37 +05:30
|
|
|
feature = create(:group_label, group: group, title: 'feature')
|
|
|
|
issue = create(:labeled_issue, project: project, labels: [feature])
|
2017-09-10 17:25:29 +05:30
|
|
|
label_link = project_issues_path(project, label_name: [feature.name])
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
visit project_issue_path(project, issue)
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
link = find('.issuable-show-labels a')
|
|
|
|
|
|
|
|
expect(link[:href]).to eq(label_link)
|
|
|
|
end
|
|
|
|
end
|