From 70efa16a0c5dc4f031075ffaaec682f4f69fcb44 Mon Sep 17 00:00:00 2001 From: Jan-Willem van der Meer Date: Fri, 10 Oct 2014 12:00:37 +0200 Subject: [PATCH] More specific check for generated email --- spec/lib/gitlab/oauth/auth_hash_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/lib/gitlab/oauth/auth_hash_spec.rb b/spec/lib/gitlab/oauth/auth_hash_spec.rb index 68b87dbd4b..5eb77b492b 100644 --- a/spec/lib/gitlab/oauth/auth_hash_spec.rb +++ b/spec/lib/gitlab/oauth/auth_hash_spec.rb @@ -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