diff options
Diffstat (limited to 'spec/helpers/visibility_level_helper_spec.rb')
-rw-r--r-- | spec/helpers/visibility_level_helper_spec.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/spec/helpers/visibility_level_helper_spec.rb b/spec/helpers/visibility_level_helper_spec.rb index 7ef911131ba..cd1fc70bbc1 100644 --- a/spec/helpers/visibility_level_helper_spec.rb +++ b/spec/helpers/visibility_level_helper_spec.rb @@ -47,13 +47,6 @@ RSpec.describe VisibilityLevelHelper do .to match /group/i end end - - context 'called with a Snippet' do - it 'delegates snippets to #snippet_visibility_level_description' do - expect(visibility_level_description(Gitlab::VisibilityLevel::INTERNAL, project_snippet)) - .to match /snippet/i - end - end end describe "#project_visibility_level_description" do @@ -68,23 +61,6 @@ RSpec.describe VisibilityLevelHelper do end end - describe "#snippet_visibility_level_description" do - it 'describes visibility only for me' do - expect(snippet_visibility_level_description(Gitlab::VisibilityLevel::PRIVATE, personal_snippet)) - .to eq _('The snippet is visible only to me.') - end - - it 'describes visibility for project members' do - expect(snippet_visibility_level_description(Gitlab::VisibilityLevel::PRIVATE, project_snippet)) - .to eq _('The snippet is visible only to project members.') - end - - it 'defaults to personal snippet' do - expect(snippet_visibility_level_description(Gitlab::VisibilityLevel::PRIVATE)) - .to eq _('The snippet is visible only to me.') - end - end - describe "disallowed_visibility_level?" do describe "forks" do let(:project) { create(:project, :internal) } |