Sha256: fe419fcd18c83c07cc7dc3bc5eab571404c863445b345da0e04fb63ce562d712

Contents?: true

Size: 599 Bytes

Versions: 228

Compression:

Stored size: 599 Bytes

Contents

require File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../test_helper'

class <%= class_name %>Test < ActionMailer::TestCase
  tests <%= class_name %>
<% for action in actions -%>
  def test_<%= action %>
    @expected.subject = '<%= class_name %>#<%= action %>'
    @expected.body    = read_fixture('<%= action %>')
    @expected.date    = Time.now

    assert_equal @expected.encoded, <%= class_name %>.create_<%= action %>(@expected.date).encoded
  end

<% end -%>
<% if actions.blank? -%>
  # replace this with your real tests
  def test_truth
    assert true
  end
<% end -%>
end

Version data entries

228 entries across 228 versions & 8 rubygems

Version Path
trusty-cms-6.3.1 lib/generators/extension_mailer/templates/unit_test.rb
trusty-cms-7.0.2 lib/generators/extension_mailer/templates/unit_test.rb
trusty-cms-7.0.1 lib/generators/extension_mailer/templates/unit_test.rb
trusty-cms-7.0.0 lib/generators/extension_mailer/templates/unit_test.rb
trusty-cms-6.3 lib/generators/extension_mailer/templates/unit_test.rb
trusty-cms-6.2.1 lib/generators/extension_mailer/templates/unit_test.rb
trusty-cms-6.2.2.1 lib/generators/extension_mailer/templates/unit_test.rb
trusty-cms-6.2.0 lib/generators/extension_mailer/templates/unit_test.rb
trusty-cms-6.1.2 lib/generators/extension_mailer/templates/unit_test.rb
trusty-cms-6.1.1 lib/generators/extension_mailer/templates/unit_test.rb
trusty-cms-6.0.5 lib/generators/extension_mailer/templates/unit_test.rb
trusty-cms-6.0.4 lib/generators/extension_mailer/templates/unit_test.rb
trusty-cms-6.0.3 lib/generators/extension_mailer/templates/unit_test.rb
trusty-cms-6.0.2 lib/generators/extension_mailer/templates/unit_test.rb
trusty-cms-6.0.1 lib/generators/extension_mailer/templates/unit_test.rb
trusty-cms-5.6.1 lib/generators/extension_mailer/templates/unit_test.rb
trusty-cms-6.0.0 lib/generators/extension_mailer/templates/unit_test.rb
trusty-cms-5.6.0 lib/generators/extension_mailer/templates/unit_test.rb
trusty-cms-5.5.9 lib/generators/extension_mailer/templates/unit_test.rb
trusty-cms-5.5.8 lib/generators/extension_mailer/templates/unit_test.rb