diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-20 23:50:22 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-20 23:50:22 +0000 |
commit | 9dc93a4519d9d5d7be48ff274127136236a3adb3 (patch) | |
tree | 70467ae3692a0e35e5ea56bcb803eb512a10bedb /spec/views/projects/commit/_commit_box.html.haml_spec.rb | |
parent | 4b0f34b6d759d6299322b3a54453e930c6121ff0 (diff) | |
download | gitlab-ce-9dc93a4519d9d5d7be48ff274127136236a3adb3.tar.gz |
Add latest changes from gitlab-org/gitlab@13-11-stable-eev13.11.0-rc43
Diffstat (limited to 'spec/views/projects/commit/_commit_box.html.haml_spec.rb')
-rw-r--r-- | spec/views/projects/commit/_commit_box.html.haml_spec.rb | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/spec/views/projects/commit/_commit_box.html.haml_spec.rb b/spec/views/projects/commit/_commit_box.html.haml_spec.rb index 9d18519ade6..c503e085d02 100644 --- a/spec/views/projects/commit/_commit_box.html.haml_spec.rb +++ b/spec/views/projects/commit/_commit_box.html.haml_spec.rb @@ -34,14 +34,6 @@ RSpec.describe 'projects/commit/_commit_box.html.haml' do expect(rendered).to have_selector('.js-commit-pipeline-mini-graph') end - - it 'shows pipeline stages in haml when feature flag is disabled' do - stub_feature_flags(ci_commit_pipeline_mini_graph_vue: false) - - render - - expect(rendered).to have_selector('.js-commit-pipeline-graph') - end end context 'when there are multiple pipelines for a commit' do @@ -74,30 +66,4 @@ RSpec.describe 'projects/commit/_commit_box.html.haml' do end end end - - context 'viewing a commit' do - context 'as a developer' do - before do - allow(view).to receive(:can_collaborate_with_project?).and_return(true) - end - - it 'has a link to create a new tag' do - render - - expect(rendered).to have_link('Tag') - end - end - - context 'as a non-developer' do - before do - project.add_guest(user) - end - - it 'does not have a link to create a new tag' do - render - - expect(rendered).not_to have_link('Tag') - end - end - end end |