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

17 lines
395 B
Ruby
Raw Normal View History

2017-08-17 22:00:37 +05:30
require 'spec_helper'
2017-09-10 17:25:29 +05:30
describe 'Discussion Comments Issue', :js do
2017-08-17 22:00:37 +05:30
let(:user) { create(:user) }
2017-09-10 17:25:29 +05:30
let(:project) { create(:project) }
2017-08-17 22:00:37 +05:30
let(:snippet) { create(:project_snippet, :private, project: project, author: user) }
before do
project.add_master(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
it_behaves_like 'discussion comments', 'snippet'
end