debian-mirror-gitlab/spec/features/issues/user_sees_breadcrumb_links_spec.rb

19 lines
494 B
Ruby
Raw Normal View History

2018-11-20 20:47:30 +05:30
require 'rails_helper'
describe 'New issue breadcrumbs' do
let(:project) { create(:project) }
let(:user) { project.creator }
before do
sign_in(user)
visit new_project_issue_path(project)
end
it 'display a link to project issues and new issue pages' do
page.within '.breadcrumbs' do
expect(find_link('Issues')[:href]).to end_with(project_issues_path(project))
expect(find_link('New')[:href]).to end_with(new_project_issue_path(project))
end
end
end