debian-mirror-gitlab/spec/features/discussion_comments/snippets_spec.rb

20 lines
505 B
Ruby
Raw Normal View History

2019-10-12 21:52:04 +05:30
# frozen_string_literal: true
2017-08-17 22:00:37 +05:30
require 'spec_helper'
2020-06-23 00:09:42 +05:30
RSpec.describe 'Thread Comments Snippet', :js do
2020-04-08 14:13:33 +05:30
let_it_be(:user) { create(:user) }
let_it_be(:project) { create(:project) }
let_it_be(:snippet) { create(:project_snippet, :private, :repository, project: project, author: user) }
2017-08-17 22:00:37 +05:30
before do
2020-01-01 13:55:28 +05:30
stub_feature_flags(snippets_vue: false)
2018-11-18 11:00:15 +05:30
project.add_maintainer(user)
2017-09-10 17:25:29 +05:30
sign_in(user)
2017-08-17 22:00:37 +05:30
2017-09-10 17:25:29 +05:30
visit project_snippet_path(project, snippet)
2017-08-17 22:00:37 +05:30
end
2019-09-30 21:07:59 +05:30
it_behaves_like 'thread comments', 'snippet'
2017-08-17 22:00:37 +05:30
end