Sha256: dab553db526c4e98aedded5ca7b0ed9ebc4220172c1c2dab759321ce6e574980

Contents?: true

Size: 758 Bytes

Versions: 83

Compression:

Stored size: 758 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper'
require '<%= file_name %>_mailer'

class <%= class_name %>MailerTest < Test::Unit::TestCase
  FIXTURES_PATH = File.dirname(__FILE__) + '/../fixtures'
  CHARSET = "utf-8"

  include ActionMailer::Quoting

  def setup
    ActionMailer::Base.delivery_method = :test
    ActionMailer::Base.perform_deliveries = true
    ActionMailer::Base.deliveries = []

    @expected = TMail::Mail.new
    @expected.set_content_type "text", "plain", { "charset" => CHARSET }
  end

  def test_dummy_test
    #do nothing
  end

  private
    def read_fixture(action)
      IO.readlines("#{FIXTURES_PATH}/<%= file_name %>_mailer/#{action}")
    end

    def encode(subject)
      quoted_printable(subject, CHARSET)
    end
end

Version data entries

83 entries across 76 versions & 13 rubygems

Version Path
caleb-restful-authentication-1.1.1 generators/authenticated/templates/test/mailer_test.rb
dwaite-restful-authentication-1.1.1 generators/authenticated/templates/test/mailer_test.rb
genki-restful-authentication-1.1.1 generators/authenticated/templates/test/mailer_test.rb
ggoodale-restful-authentication-1.1.1 generators/authenticated/templates/test/mailer_test.rb
jcnetdev-restful-authentication-1.0.20080704 generators/authenticated/templates/test/mailer_test.rb
simonmenke-mr_authentication-0.0.1 vendor/plugins/restful-authentication/generators/authenticated/templates/test/mailer_test.rb
smukherjee-openbill-0.1.5 vendor/plugins/restful-authentication/generators/authenticated/templates/test/mailer_test.rb
smukherjee-openbill-0.1.6 vendor/plugins/restful-authentication/generators/authenticated/templates/test/mailer_test.rb
smukherjee-openbill-0.1.7 vendor/plugins/restful-authentication/generators/authenticated/templates/test/mailer_test.rb
tournament-5.0.0 webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/test/mailer_test.rb
branston-0.6.6 lib/branston/vendor/plugins/restful_authentication/generators/authenticated/templates/test/mailer_test.rb
branston-0.6.5 lib/branston/vendor/plugins/restful_authentication/generators/authenticated/templates/test/mailer_test.rb
branston-0.6.4 lib/branston/vendor/plugins/restful_authentication/generators/authenticated/templates/test/mailer_test.rb
branston-0.6.3 lib/branston/vendor/plugins/restful_authentication/generators/authenticated/templates/test/mailer_test.rb
branston-0.6.2 lib/branston/vendor/plugins/restful_authentication/generators/authenticated/templates/test/mailer_test.rb
tournament-4.2.0 webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/test/mailer_test.rb
tournament-4.0.2 webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/test/mailer_test.rb
tournament-4.0.0 webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/test/mailer_test.rb
somatics3-generators-0.0.9 lib/generators/somatics/authenticated/templates/test/mailer_test.rb
somatics3-generators-0.0.9 lib/generators/somatics/authenticated_controller/templates/test/mailer_test.rb