debian-mirror-gitlab/spec/features/snippets/user_sees_breadcrumb_links.rb

18 lines
432 B
Ruby
Raw Normal View History

2018-12-05 23:21:45 +05:30
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