Commit 4cadf22e authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'update-user_uses_slash_commands_spec' into 'master'

Minor update to address Sean McGivern's comment.

See merge request gitlab-org/gitlab-ce!14311
parents bff004d4 c2766552
...@@ -159,7 +159,7 @@ feature 'Issues > User uses quick actions', js: true do ...@@ -159,7 +159,7 @@ feature 'Issues > User uses quick actions', js: true do
describe 'move the issue to another project' do describe 'move the issue to another project' do
let(:issue) { create(:issue, project: project) } let(:issue) { create(:issue, project: project) }
context 'when the project is valid', js: true do context 'when the project is valid' do
let(:target_project) { create(:project, :public) } let(:target_project) { create(:project, :public) }
before do before do
...@@ -180,7 +180,7 @@ feature 'Issues > User uses quick actions', js: true do ...@@ -180,7 +180,7 @@ feature 'Issues > User uses quick actions', js: true do
end end
end end
context 'when the project is valid but the user not authorized', js: true do context 'when the project is valid but the user not authorized' do
let(:project_unauthorized) {create(:project, :public)} let(:project_unauthorized) {create(:project, :public)}
before do before do
...@@ -196,7 +196,7 @@ feature 'Issues > User uses quick actions', js: true do ...@@ -196,7 +196,7 @@ feature 'Issues > User uses quick actions', js: true do
end end
end end
context 'when the project is invalid', js: true do context 'when the project is invalid' do
before do before do
sign_in(user) sign_in(user)
visit project_issue_path(project, issue) visit project_issue_path(project, issue)
...@@ -210,7 +210,7 @@ feature 'Issues > User uses quick actions', js: true do ...@@ -210,7 +210,7 @@ feature 'Issues > User uses quick actions', js: true do
end end
end end
context 'when the user issues multiple commands', js: true do context 'when the user issues multiple commands' do
let(:target_project) { create(:project, :public) } let(:target_project) { create(:project, :public) }
let(:milestone) { create(:milestone, title: '1.0', project: project) } let(:milestone) { create(:milestone, title: '1.0', project: project) }
let(:target_milestone) { create(:milestone, title: '1.0', project: target_project) } let(:target_milestone) { create(:milestone, title: '1.0', project: target_project) }
......
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