diff options
author | Fatih Acet <acetfatih@gmail.com> | 2017-07-22 02:59:25 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2017-07-22 02:59:25 +0300 |
commit | 99b82a0716b53b6edf5057fa05736f6c5d00a5b8 (patch) | |
tree | f3a71244aaeec5970c2fd81c2eb9a2113d64c43f /spec/support | |
parent | 562ccdae3efad9ae883867bd21bf7b274a9163f8 (diff) | |
download | gitlab-ce-99b82a0716b53b6edf5057fa05736f6c5d00a5b8.tar.gz |
IssueNotesRefactor: Use `gitlab_` prefixed auth helpers.
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/features/issuable_slash_commands_shared_examples.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/support/features/issuable_slash_commands_shared_examples.rb b/spec/support/features/issuable_slash_commands_shared_examples.rb index 9597493aa39..a99ebb582ee 100644 --- a/spec/support/features/issuable_slash_commands_shared_examples.rb +++ b/spec/support/features/issuable_slash_commands_shared_examples.rb @@ -18,7 +18,7 @@ shared_examples 'issuable record that supports quick actions in its description project.team << [assignee, :developer] project.team << [guest, :guest] - sign_in(master) + gitlab_sign_in(master) end after do @@ -111,8 +111,8 @@ shared_examples 'issuable record that supports quick actions in its description context "when current user cannot close #{issuable_type}" do before do - sign_out(:user) - sign_in(guest) + gitlab_sign_out + gitlab_sign_in(guest) visit public_send("namespace_project_#{issuable_type}_path", project.namespace, project, issuable) end @@ -146,8 +146,8 @@ shared_examples 'issuable record that supports quick actions in its description context "when current user cannot reopen #{issuable_type}" do before do - sign_out(:user) - sign_in(guest) + gitlab_sign_out + gitlab_sign_in(guest) visit public_send("namespace_project_#{issuable_type}_path", project.namespace, project, issuable) end @@ -176,8 +176,8 @@ shared_examples 'issuable record that supports quick actions in its description context "when current user cannot change title of #{issuable_type}" do before do - sign_out(:user) - sign_in(guest) + gitlab_sign_out + gitlab_sign_in(guest) visit public_send("namespace_project_#{issuable_type}_path", project.namespace, project, issuable) end @@ -265,7 +265,7 @@ shared_examples 'issuable record that supports quick actions in its description end end - describe "preview of note on #{issuable_type}" do + describe "preview of note on #{issuable_type}", js: true do it 'removes quick actions from note and explains them' do visit public_send("namespace_project_#{issuable_type}_path", project.namespace, project, issuable) |