Commit 204f4c5c authored by Robert Speicher's avatar Robert Speicher

Change gitlab_sign_out to sign_out where possible

parent 0c529b4a
...@@ -111,7 +111,7 @@ shared_examples 'issuable record that supports quick actions in its description ...@@ -111,7 +111,7 @@ shared_examples 'issuable record that supports quick actions in its description
context "when current user cannot close #{issuable_type}" do context "when current user cannot close #{issuable_type}" do
before do before do
gitlab_sign_out sign_out(:user)
sign_in(guest) sign_in(guest)
visit public_send("namespace_project_#{issuable_type}_path", project.namespace, project, issuable) visit public_send("namespace_project_#{issuable_type}_path", project.namespace, project, issuable)
end end
...@@ -146,7 +146,7 @@ shared_examples 'issuable record that supports quick actions in its description ...@@ -146,7 +146,7 @@ shared_examples 'issuable record that supports quick actions in its description
context "when current user cannot reopen #{issuable_type}" do context "when current user cannot reopen #{issuable_type}" do
before do before do
gitlab_sign_out sign_out(:user)
sign_in(guest) sign_in(guest)
visit public_send("namespace_project_#{issuable_type}_path", project.namespace, project, issuable) visit public_send("namespace_project_#{issuable_type}_path", project.namespace, project, issuable)
end end
...@@ -176,7 +176,7 @@ shared_examples 'issuable record that supports quick actions in its description ...@@ -176,7 +176,7 @@ shared_examples 'issuable record that supports quick actions in its description
context "when current user cannot change title of #{issuable_type}" do context "when current user cannot change title of #{issuable_type}" do
before do before do
gitlab_sign_out sign_out(:user)
sign_in(guest) sign_in(guest)
visit public_send("namespace_project_#{issuable_type}_path", project.namespace, project, issuable) visit public_send("namespace_project_#{issuable_type}_path", project.namespace, 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