Commit 56754866 authored by Samantha Ming's avatar Samantha Ming

Create ee related spec

parent 60f29fbb
# frozen_string_literal: true
require "spec_helper"
RSpec.describe "Issues > User edits issue", :js do
let!(:project) { create(:project) }
let!(:user) { create(:user)}
let!(:milestone) { create(:milestone, project: project) }
let!(:label) { create(:label, project: project) }
let!(:issue) { create(:issue, project: project, assignees: [user], milestone: milestone) }
context 'with multiple_issue_assignees' do
it 'displays plural Assignees title' do
stub_licensed_features(multiple_issue_assignees: true)
project.add_maintainer(user)
sign_in(user)
visit edit_project_issue_path(project, issue)
expect(page).to have_content "Assignees"
end
end
end
......@@ -20,17 +20,6 @@ RSpec.describe "Issues > User edits issue", :js do
sign_in(user)
end
# context 'with multiple_issue_assignees license feature on' do
# before do
# stub_licensed_features(multiple_issue_assignees: true)
# end
# it 'displays plural Assignees title' do
# visit edit_project_issue_path(project, issue)
# expect(page).to have_content "Assignees"
# end
# end
context "from edit page" do
before do
stub_licensed_features(multiple_issue_assignees: false)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment