BigW Consortium Gitlab

Commit cefc7eb1 by Lin Jen-Shin

Fix test for bcc changes

parent 045c6715
...@@ -58,8 +58,7 @@ describe PipelinesEmailService do ...@@ -58,8 +58,7 @@ describe PipelinesEmailService do
end end
it 'sends email' do it 'sends email' do
sent_to = ActionMailer::Base.deliveries.flat_map(&:to) should_only_email(double(email: recipient), kind: :bcc)
expect(sent_to).to contain_exactly(recipient)
end end
end end
...@@ -71,7 +70,7 @@ describe PipelinesEmailService do ...@@ -71,7 +70,7 @@ describe PipelinesEmailService do
end end
it 'does not send email' do it 'does not send email' do
expect(ActionMailer::Base.deliveries).to be_empty should_not_email_anyone
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment