mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-19 04:49:15 +00:00
15 lines
371 B
Ruby
15 lines
371 B
Ruby
# frozen_string_literal: true
|
|
|
|
RSpec::Matchers.define :send_confirmation_instructions do
|
|
match do |event_proc|
|
|
expect(&event_proc).to change { ActionMailer::Base.deliveries.count }.by 1
|
|
|
|
message = ActionMailer::Base.deliveries.last
|
|
expect(message.subject).to eq "Please confirm your OFN account"
|
|
end
|
|
|
|
def supports_block_expectations?
|
|
true
|
|
end
|
|
end
|