gitlab-org--gitlab-foss/spec/features/snippets/user_sees_breadcrumb_links.rb
2018-09-24 13:36:37 +00:00

17 lines
432 B
Ruby

require 'rails_helper'
describe 'New user snippet breadcrumbs' do
let(:user) { create(:user) }
before do
sign_in(user)
visit new_snippet_path
end
it 'display a link to user snippets and new user snippet pages' do
page.within '.breadcrumbs' do
expect(find_link('Snippets')[:href]).to end_with(dashboard_snippets_path)
expect(find_link('New')[:href]).to end_with(new_snippet_path)
end
end
end