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