Sha256: 975110ac7c10bfd0753356425e9c1129051c5d82957defa509d682a4c447551a
Contents?: true
Size: 900 Bytes
Versions: 2
Compression:
Stored size: 900 Bytes
Contents
# Note tests require tmail to be the underlying message handler, so need to be run with Rails 2.3 or below require 'rubygems' vendored_rails = File.dirname(__FILE__) + '/../../../../vendor/rails' if File.exists?(vendored_rails) Dir.glob(vendored_rails + "/**/lib").each { |dir| $:.unshift dir } RAILS_ROOT = File.dirname(__FILE__) + '/../../../../' unless defined?(RAILS_ROOT) else gem 'rails', "=#{ENV['VERSION']}" if ENV['VERSION'] RAILS_ROOT = '.' unless defined?(RAILS_ROOT) end require 'test/unit' RAILS_ENV = 'test' require File.join(File.dirname(__FILE__), "..", "init") # configure ActionMailer ActionMailer::Base.template_root = File.join(File.dirname(__FILE__), "test") ActionMailer::Base.sanitized_recipients = "test@example.com" ActionMailer::Base.sanitized_bcc = nil ActionMailer::Base.sanitized_cc = nil require File.expand_path(File.dirname(__FILE__) + '/sample_mailer')
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sanitize_email-0.3.9 | test/test_helper.rb |
sanitize_email-0.3.8 | test/test_helper.rb |