Commit e39962b0 authored by Mehdi Lahmam's avatar Mehdi Lahmam

Prefer `sign_in` over `gitlab_sign_in` as its faster

Devise helpers acts on Warden which is faster than our own helpers.
Note that `gitlab_sign_out` is still necessary due to the same issue
mentioned at 60814985
parent 9feb145c
...@@ -309,7 +309,7 @@ shared_examples 'issuable record that supports quick actions in its description ...@@ -309,7 +309,7 @@ shared_examples 'issuable record that supports quick actions in its description
project.add_guest(guest) project.add_guest(guest)
gitlab_sign_out gitlab_sign_out
gitlab_sign_in(guest) sign_in(guest)
visit public_send("project_#{issuable_type}_path", project, issuable) visit public_send("project_#{issuable_type}_path", project, issuable)
end end
...@@ -346,7 +346,7 @@ shared_examples 'issuable record that supports quick actions in its description ...@@ -346,7 +346,7 @@ shared_examples 'issuable record that supports quick actions in its description
project.add_guest(guest) project.add_guest(guest)
gitlab_sign_out gitlab_sign_out
gitlab_sign_in(guest) sign_in(guest)
visit public_send("project_#{issuable_type}_path", project, issuable) visit public_send("project_#{issuable_type}_path", project, issuable)
end end
......
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