diff options
Diffstat (limited to 'spec/models/commit_spec.rb')
-rw-r--r-- | spec/models/commit_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb index d93488c..da57109 100644 --- a/spec/models/commit_spec.rb +++ b/spec/models/commit_spec.rb @@ -81,7 +81,7 @@ describe Commit do context 'always sending notification' do it 'should return commit_pusher_email as only recipient when no additional recipients are given' do project = FactoryGirl.create :project, - email_add_committer: true, + email_add_pusher: true, email_recipients: '' commit = FactoryGirl.create :commit, project: project expected = 'commit_pusher_email' @@ -91,7 +91,7 @@ describe Commit do it 'should return commit_pusher_email and additional recipients' do project = FactoryGirl.create :project, - email_add_committer: true, + email_add_pusher: true, email_recipients: 'rec1 rec2' commit = FactoryGirl.create :commit, project: project expected = 'commit_pusher_email' @@ -101,7 +101,7 @@ describe Commit do it 'should return recipients' do project = FactoryGirl.create :project, - email_add_committer: false, + email_add_pusher: false, email_recipients: 'rec1 rec2' commit = FactoryGirl.create :commit, project: project commit.project_recipients.should == ['rec1', 'rec2'] @@ -109,7 +109,7 @@ describe Commit do it 'should return unique recipients only' do project = FactoryGirl.create :project, - email_add_committer: true, + email_add_pusher: true, email_recipients: 'rec1 rec1 rec2' commit = FactoryGirl.create :commit, project: project expected = 'rec2' |