Commit 000cd01b authored by Nicolas Dular's avatar Nicolas Dular

Cleanup welcome helper method

parent 7a752db3
......@@ -13,7 +13,7 @@ module EE
end
def in_invitation_flow?
redirect_path&.starts_with?('/-/invites/')
redirect_path.present? && redirect_path.starts_with?('/-/invites/')
end
def in_oauth_flow?
......
......@@ -42,7 +42,7 @@ RSpec.describe EE::WelcomeHelper do
'/-/invites/xxx' | true
'/invites/xxx' | false
'/foo' | false
nil | nil
nil | false
end
with_them do
......
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