diff options
author | Rémy Coutable <remy@rymai.me> | 2018-05-02 15:46:46 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-05-02 15:46:52 +0300 |
commit | f6bfee6bc24b2a11ef51d44e88e6a2c8bd743f74 (patch) | |
tree | 5b9749c4b0c1b10b8ce111e04125b29abc2e0ea9 | |
parent | 75f6e91fcde12029068f48b6b7fb3fd13a612c61 (diff) |
Make sure the user is logged out before they're logged in again
Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r-- | spec/features/issues/user_uses_slash_commands_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/features/issues/user_uses_slash_commands_spec.rb b/spec/features/issues/user_uses_slash_commands_spec.rb index ff2a0e15719..ddd64fa1412 100644 --- a/spec/features/issues/user_uses_slash_commands_spec.rb +++ b/spec/features/issues/user_uses_slash_commands_spec.rb @@ -178,9 +178,10 @@ feature 'Issues > User uses quick actions', :js do end 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 + gitlab_sign_out sign_in(user) visit project_issue_path(project, issue) end @@ -195,6 +196,7 @@ feature 'Issues > User uses quick actions', :js do context 'when the project is invalid' do before do + gitlab_sign_out sign_in(user) visit project_issue_path(project, issue) end |