diff options
author | J.D. Bean <jonathandbean@gmail.com> | 2018-09-04 20:31:16 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-09-04 20:31:16 +0300 |
commit | 57ade484bbc0ecfe68e0be98707e7a5baae91ebe (patch) | |
tree | 3ccb78debdf18d834d9fcdc6b4b3d9745c9e2001 /spec/features/merge_request | |
parent | 7ec468df33b727ebe1d28931404db9d9ea8c5706 (diff) |
Feature/new merge breadcrumbs
Diffstat (limited to 'spec/features/merge_request')
-rw-r--r-- | spec/features/merge_request/user_sees_breadcrumb_links_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/features/merge_request/user_sees_breadcrumb_links_spec.rb b/spec/features/merge_request/user_sees_breadcrumb_links_spec.rb new file mode 100644 index 00000000000..3c2e0f4892c --- /dev/null +++ b/spec/features/merge_request/user_sees_breadcrumb_links_spec.rb @@ -0,0 +1,18 @@ +require 'rails_helper' + +describe 'New merge request breadcrumbs' do + let(:project) { create(:project) } + let(:user) { project.creator } + + before do + sign_in(user) + visit project_new_merge_request_path(project) + end + + it 'display a link to project merge requests and new merge request pages' do + page.within '.breadcrumbs' do + expect(find_link('Merge Requests')[:href]).to end_with(project_merge_requests_path(project)) + expect(find_link('New')[:href]).to end_with(project_new_merge_request_path(project)) + end + end +end |