Commit fcf697b3 authored by J.D. Bean's avatar J.D. Bean Committed by Rémy Coutable
Browse files

Feature/new user snippets breadcrumbs

parent 80ea92a313ad
- @hide_top_links = true
- breadcrumb_title "Snippets"
- add_to_breadcrumbs "Snippets", dashboard_snippets_path
- breadcrumb_title "New"
- page_title "New Snippet"
%h3.page-title
New Snippet
......
---
title: Add link to User Snippets in breadcrumbs of New User Snippet page
merge_request:
author: J.D. Bean
type: add
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment