diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-03-04 22:12:50 +0200 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-03-10 15:54:59 +0200 |
commit | e435e6b4a4100f1884088aa5a6156ce69304b473 (patch) | |
tree | ecbcff8b37f377b3d097b7e4b3b197c831287fe8 | |
parent | 2fbe5a92eb777f038da775608d80b002833f88be (diff) | |
download | gitlab-ci-e435e6b4a4100f1884088aa5a6156ce69304b473.tar.gz |
notifications: fix spec
-rw-r--r-- | spec/factories/commits.rb | 1 | ||||
-rw-r--r-- | spec/models/mail_service_spec.rb | 6 |
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 |