gitlab-org--gitlab-foss/spec/features/snippets/internal_snippet_spec.rb

24 lines
523 B
Ruby
Raw Normal View History

require 'rails_helper'
2018-07-05 02:32:05 -04:00
describe 'Internal Snippets', :js do
let(:internal_snippet) { create(:personal_snippet, :internal) }
describe 'normal user' do
before do
sign_in(create(:user))
end
2018-07-05 02:32:05 -04:00
it 'sees internal snippets' do
visit snippet_path(internal_snippet)
expect(page).to have_content(internal_snippet.content)
end
2018-07-05 02:32:05 -04:00
it 'sees raw internal snippets' do
visit raw_snippet_path(internal_snippet)
expect(page).to have_content(internal_snippet.content)
end
end
end