Sha256: 95663f4fb1efe443d8265be6f484afefd65a87f5b197d349d6049573a5f4993a

Contents?: true

Size: 553 Bytes

Versions: 13

Compression:

Stored size: 553 Bytes

Contents

require "test_helper"

<% module_namespacing do -%>
describe <%= class_name %>Mailer do
<% actions.each do |action| -%>
  it "creates <%= action %> email" do
    mail = <%= class_name %>Mailer.<%= action %>
    mail.subject.must_equal <%= action.to_s.humanize.inspect %>
    mail.to.must_equal ["to@example.org"]
    mail.from.must_equal ["from@example.com"]
    mail.body.encoded.must_equal "Hi"
  end

<% end -%>
<% if actions.blank? -%>
  # it "does a thing" do
  #   <%= spec_expectation_monad %>(1+1).must_equal 2
  # end
<% end -%>
end
<% end -%>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
minitest-rails-7.1.1 lib/generators/minitest/mailer/templates/functional_spec.rb.tt
minitest-rails-6.0.2 lib/generators/minitest/mailer/templates/functional_spec.rb.tt
minitest-rails-6.1.1 lib/generators/minitest/mailer/templates/functional_spec.rb.tt
minitest-rails-7.0.1 lib/generators/minitest/mailer/templates/functional_spec.rb.tt
minitest-rails-7.1.0 lib/generators/minitest/mailer/templates/functional_spec.rb.tt
minitest-rails-7.0.0 lib/generators/minitest/mailer/templates/functional_spec.rb.tt
minitest-rails-6.1.0 lib/generators/minitest/mailer/templates/functional_spec.rb.tt
minitest-rails-6.0.1 lib/generators/minitest/mailer/templates/functional_spec.rb.tt
minitest-rails-6.0.0 lib/generators/minitest/mailer/templates/functional_spec.rb.tt
minitest-rails-6.0.0.rc1 lib/generators/minitest/mailer/templates/functional_spec.rb.tt
minitest-rails-5.2.0 lib/generators/minitest/mailer/templates/functional_spec.rb.tt
minitest-rails-5.1.0 lib/generators/minitest/mailer/templates/functional_spec.rb.tt
minitest-rails-5.0.0 lib/generators/minitest/mailer/templates/functional_spec.rb.tt