More specific check for generated email

parent 9a1573b2
......@@ -33,7 +33,7 @@ describe Gitlab::OAuth::AuthHash do
context "email not provided" do
before { info_hash.delete(:email) }
it "generates a temp email" do
expect( auth_hash.email).to_not be_empty
expect( auth_hash.email).to start_with('temp-email-for-oauth')
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