summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/factories/commits.rb1
-rw-r--r--spec/models/mail_service_spec.rb6
2 files changed, 4 insertions, 3 deletions
diff --git a/spec/factories/commits.rb b/spec/factories/commits.rb
index 156fabe..3674643 100644
--- a/spec/factories/commits.rb
+++ b/spec/factories/commits.rb
@@ -25,6 +25,7 @@ FactoryGirl.define do
before: '76de212e80737a608d939f648d959671fb0a0142',
after: '97de212e80737a608d939f648d959671fb0a0142',
user_name: 'Git User',
+ user_email: 'git@example.com',
repository: {
name: 'test-data',
url: 'ssh://git@gitlab.com/test/test-data.git',
diff --git a/spec/models/mail_service_spec.rb b/spec/models/mail_service_spec.rb
index 7a43978..839333e 100644
--- a/spec/models/mail_service_spec.rb
+++ b/spec/models/mail_service_spec.rb
@@ -28,7 +28,7 @@ describe MailService do
end
it do
- should_email(commit.git_author_email)
+ should_email("git@example.com")
mail.execute(build)
end
@@ -50,7 +50,7 @@ describe MailService do
end
it do
- should_email(commit.git_author_email)
+ should_email("git@example.com")
mail.execute(build)
end
@@ -77,7 +77,7 @@ describe MailService do
end
it do
- should_email(commit.git_author_email)
+ should_email("git@example.com")
should_email("jeroen@example.com")
mail.execute(build)
end