You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/matchers/send_email_matcher.feature
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,14 @@ Feature: `send_email` matcher
2
2
3
3
The `send_email` matcher is used to check if an email with the given parameters has been sent inside the expectation block.
4
4
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.
- If the email is sent asynchronously (with `.deliver_later` call), ActiveJob uses the inline adapter - `Rails.application.config.active_job.queue_adapter = :inline`
10
10
- ActionMailer uses the test adapter - `Rails.application.config.action_mailer.delivery_method = :test`
11
11
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.
13
13
14
14
Scenario: Checking email sent with the given multiple parameters
15
15
Given a file named "spec/mailers/notifications_mailer_spec.rb" with:
0 commit comments