Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/snippets/internal_snippet_spec.rb')
-rw-r--r--spec/features/snippets/internal_snippet_spec.rb11
1 files changed, 4 insertions, 7 deletions
diff --git a/spec/features/snippets/internal_snippet_spec.rb b/spec/features/snippets/internal_snippet_spec.rb
index 3ce297ab22d..2fcd11c2a47 100644
--- a/spec/features/snippets/internal_snippet_spec.rb
+++ b/spec/features/snippets/internal_snippet_spec.rb
@@ -3,11 +3,8 @@
require 'spec_helper'
RSpec.describe 'Internal Snippets', :js do
- let(:internal_snippet) { create(:personal_snippet, :internal) }
-
- before do
- stub_feature_flags(snippets_vue: false)
- end
+ let(:internal_snippet) { create(:personal_snippet, :internal, :repository) }
+ let(:content) { internal_snippet.blobs.first.data.strip! }
describe 'normal user' do
before do
@@ -17,13 +14,13 @@ RSpec.describe 'Internal Snippets', :js do
it 'sees internal snippets' do
visit snippet_path(internal_snippet)
- expect(page).to have_content(internal_snippet.content)
+ expect(page).to have_content(content)
end
it 'sees raw internal snippets' do
visit raw_snippet_path(internal_snippet)
- expect(page).to have_content(internal_snippet.content)
+ expect(page).to have_content(content)
end
end
end