diff options
author | Jasper Maes <jaspermaes.jm@gmail.com> | 2019-01-11 23:10:55 +0300 |
---|---|---|
committer | Jasper Maes <jaspermaes.jm@gmail.com> | 2019-01-12 01:59:35 +0300 |
commit | 4361c92b6a41554ae8a8e4ad7204e8ed82ec7c5c (patch) | |
tree | cbf947e67566d27562fe9765c109ccf8d54ed246 /spec/views | |
parent | f5dd9107363b7376325712f973339c7fde036ef2 (diff) |
Update gitlab-styles to 2.5.1
Diffstat (limited to 'spec/views')
-rw-r--r-- | spec/views/help/instance_configuration.html.haml_spec.rb | 6 | ||||
-rw-r--r-- | spec/views/projects/commit/show.html.haml_spec.rb | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/spec/views/help/instance_configuration.html.haml_spec.rb b/spec/views/help/instance_configuration.html.haml_spec.rb index f30b5881fde..ceb7e34a540 100644 --- a/spec/views/help/instance_configuration.html.haml_spec.rb +++ b/spec/views/help/instance_configuration.html.haml_spec.rb @@ -13,9 +13,9 @@ describe 'help/instance_configuration' do it 'has links to several sections' do render - expect(rendered).to have_link(nil, '#ssh-host-keys-fingerprints') if ssh_settings.any? - expect(rendered).to have_link(nil, '#gitlab-pages') - expect(rendered).to have_link(nil, '#gitlab-ci') + expect(rendered).to have_link(nil, href: '#ssh-host-keys-fingerprints') if ssh_settings.any? + expect(rendered).to have_link(nil, href: '#gitlab-pages') + expect(rendered).to have_link(nil, href: '#gitlab-ci') end it 'has several sections' do diff --git a/spec/views/projects/commit/show.html.haml_spec.rb b/spec/views/projects/commit/show.html.haml_spec.rb index a9c32122600..d07099489e5 100644 --- a/spec/views/projects/commit/show.html.haml_spec.rb +++ b/spec/views/projects/commit/show.html.haml_spec.rb @@ -54,9 +54,9 @@ describe 'projects/commit/show.html.haml' do end it 'shows that it is in the context of a merge request' do - merge_request_url = diffs_project_merge_request_url(project, merge_request, commit_id: commit.id) + merge_request_url = diffs_project_merge_request_path(project, merge_request, commit_id: commit.id) expect(rendered).to have_content("This commit is part of merge request") - expect(rendered).to have_link(merge_request.to_reference, merge_request_url) + expect(rendered).to have_link(merge_request.to_reference, href: merge_request_url) end end end |