Skip to content

Commit 8388cea

Browse files
committed
Make wording changes
1 parent 36562f3 commit 8388cea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

features/matchers/send_email_matcher.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ Feature: `send_email` matcher
22

33
The `send_email` matcher is used to check if an email with the given parameters has been sent inside the expectation block.
44

5-
NOTE: It implies that the spec example actually sends the email using the test adapter and does not schedule it for background.
5+
NOTE: This matcher implies that the example(s) actually send email(s) using the test adapter, and *not* scheduled as a job to be sent in the background later.
66

77
To have an email sent in tests make sure:
88
- `ActionMailer` performs deliveries - `Rails.application.config.action_mailer.perform_deliveries = true`
99
- If the email is sent asynchronously (with `.deliver_later` call), ActiveJob uses the inline adapter - `Rails.application.config.active_job.queue_adapter = :inline`
1010
- ActionMailer uses the test adapter - `Rails.application.config.action_mailer.delivery_method = :test`
1111

12-
If you want to check an email has been scheduled for background, use the `have_enqueued_email` matcher.
12+
If you want to check an email has been scheduled as a job, use the `have_enqueued_email` matcher.
1313

1414
Scenario: Checking email sent with the given multiple parameters
1515
Given a file named "spec/mailers/notifications_mailer_spec.rb" with:

0 commit comments

Comments
 (0)