Skip to content
Snippets Groups Projects
Commit cefc7eb1 authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Fix test for bcc changes

parent 045c6715
No related branches found
No related tags found
1 merge request!6342Integrate CI emails into notification system
Pipeline #
Loading
Loading
@@ -58,8 +58,7 @@ describe PipelinesEmailService do
end
 
it 'sends email' do
sent_to = ActionMailer::Base.deliveries.flat_map(&:to)
expect(sent_to).to contain_exactly(recipient)
should_only_email(double(email: recipient), kind: :bcc)
end
end
 
Loading
Loading
@@ -71,7 +70,7 @@ describe PipelinesEmailService do
end
 
it 'does not send email' do
expect(ActionMailer::Base.deliveries).to be_empty
should_not_email_anyone
end
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment