This changes a bit, since you really don't check which template was created ...
However, I just wanted to quickly check that the correct letter (possibly) that was created was working - so that was enough for my needs:
# In RSpec: expect(ActionMailer::Base.deliveries.last.subject) .to eq I18n.t("name.of.email.subject") # In MiniTest: assert_equal I18n.t("name.of.email.subject"), ActionMailer::Base.deliveries.last.subject
source share