Commit 60f29fbb authored by Samantha Ming's avatar Samantha Ming

Flip stub license testing

parent 4ed4bcb3
......@@ -20,20 +20,20 @@ RSpec.describe "Issues > User edits issue", :js do
sign_in(user)
end
context 'with multiple_issue_assignees license feature off' do
before do
stub_licensed_features(multiple_issue_assignees: false)
end
# context 'with multiple_issue_assignees license feature on' do
# before do
# stub_licensed_features(multiple_issue_assignees: true)
# end
it 'displays singular Assignee title' do
visit edit_project_issue_path(project, issue)
expect(page).to have_content "Assignee"
end
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: true)
stub_licensed_features(multiple_issue_assignees: false)
visit edit_project_issue_path(project, issue)
end
......@@ -50,7 +50,8 @@ RSpec.describe "Issues > User edits issue", :js do
it 'allows user to select unassigned' do
visit edit_project_issue_path(project, issue)
expect(page).to have_content "Assignees #{user.name}"
expect(page).to have_content "Assignee #{user.name}"
first('.js-user-search').click
click_link 'Unassigned'
......
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