From 1ca6880aac4a41fe2ae519a87ebfb90470fad7c5 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Tue, 6 Oct 2020 18:08:49 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/presenters/snippet_blob_presenter_spec.rb | 44 -------------------------- 1 file changed, 44 deletions(-) (limited to 'spec/presenters/snippet_blob_presenter_spec.rb') diff --git a/spec/presenters/snippet_blob_presenter_spec.rb b/spec/presenters/snippet_blob_presenter_spec.rb index d7268c79a2c..ec77f8cdb4a 100644 --- a/spec/presenters/snippet_blob_presenter_spec.rb +++ b/spec/presenters/snippet_blob_presenter_spec.rb @@ -133,28 +133,6 @@ RSpec.describe SnippetBlobPresenter do subject { described_class.new(snippet.blobs.first, current_user: user).raw_path } it_behaves_like 'snippet blob raw path' - - context 'with snippet_multiple_files feature disabled' do - before do - stub_feature_flags(snippet_multiple_files: false) - end - - context 'with ProjectSnippet' do - let(:snippet) { project_snippet } - - it 'returns the raw path' do - expect(subject).to eq "/#{snippet.project.full_path}/-/snippets/#{snippet.id}/raw" - end - end - - context 'with PersonalSnippet' do - let(:snippet) { personal_snippet } - - it 'returns the raw path' do - expect(subject).to eq "/-/snippets/#{snippet.id}/raw" - end - end - end end describe '#raw_url' do @@ -165,28 +143,6 @@ RSpec.describe SnippetBlobPresenter do end it_behaves_like 'snippet blob raw url' - - context 'with snippet_multiple_files feature disabled' do - before do - stub_feature_flags(snippet_multiple_files: false) - end - - context 'with ProjectSnippet' do - let(:snippet) { project_snippet } - - it 'returns the raw project snippet url' do - expect(subject).to eq("http://test.host/#{project_snippet.project.full_path}/-/snippets/#{project_snippet.id}/raw") - end - end - - context 'with PersonalSnippet' do - let(:snippet) { personal_snippet } - - it 'returns the raw personal snippet url' do - expect(subject).to eq("http://test.host/-/snippets/#{personal_snippet.id}/raw") - end - end - end end end -- cgit v1.2.1