diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-12-10 16:16:34 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-12-10 16:16:34 +0100 |
commit | c4fa894de22a6ba20f3078f490b708c81b6d6464 (patch) | |
tree | 8174ab0bde8f24d95d0e98e3a04d8a30a4d81469 /spec/workers | |
parent | 80f8074d01a310141984dad9dfe01a27b533e78a (diff) | |
download | gitlab-ce-c4fa894de22a6ba20f3078f490b708c81b6d6464.tar.gz |
Fix specs
Diffstat (limited to 'spec/workers')
-rw-r--r-- | spec/workers/build_email_worker_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/build_email_worker_spec.rb b/spec/workers/build_email_worker_spec.rb index 7e379502f99..98deae0a588 100644 --- a/spec/workers/build_email_worker_spec.rb +++ b/spec/workers/build_email_worker_spec.rb @@ -16,7 +16,7 @@ describe BuildEmailWorker do describe "#perform" do it "sends mail" do - subject.perform(build.id, user.email, data.stringify_keys) + subject.perform(build.id, [user.email], data.stringify_keys) email = ActionMailer::Base.deliveries.last expect(email.subject).to include('Build success for') @@ -27,7 +27,7 @@ describe BuildEmailWorker do ActionMailer::Base.deliveries.clear allow(Notify).to receive(:build_success_email).and_raise(Net::SMTPFatalError) - subject.perform(build.id, user.email, data.stringify_keys) + subject.perform(build.id, [user.email], data.stringify_keys) expect(ActionMailer::Base.deliveries.count).to eq(0) end |