More specific check for generated email

This commit is contained in:
Jan-Willem van der Meer
2014-10-10 12:00:37 +02:00
parent 9a1573b2dc
commit 70efa16a0c
+1 -1
View File
@@ -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