Commit 842ed384 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'feature/new_user_snippets_breadcrumbs' into 'master'

Feature/new user snippets breadcrumbs

See merge request gitlab-org/gitlab-ce!21661
parents 28086b20 fbb0fc5e
- @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