diff options
author | Joshua Peek <josh@joshpeek.com> | 2010-02-28 18:18:21 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2010-02-28 18:18:21 -0600 |
commit | f0fe555d842e7b81b323ed3acfd551f0659c5faa (patch) | |
tree | c3f93b27005d2c52180d88947f9b73630ce8f5a0 | |
parent | 6c8d852056c0445def1622d06e007ee7831e14a3 (diff) | |
download | rails-f0fe555d842e7b81b323ed3acfd551f0659c5faa.tar.gz rails-f0fe555d842e7b81b323ed3acfd551f0659c5faa.tar.bz2 rails-f0fe555d842e7b81b323ed3acfd551f0659c5faa.zip |
fix up actionmailer load path
-rw-r--r-- | actionmailer/test/abstract_unit.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/actionmailer/test/abstract_unit.rb b/actionmailer/test/abstract_unit.rb index f6baa4a9e8..16fef3a9a4 100644 --- a/actionmailer/test/abstract_unit.rb +++ b/actionmailer/test/abstract_unit.rb @@ -1,5 +1,8 @@ require File.expand_path('../../../load_paths', __FILE__) +lib = File.expand_path("#{File.dirname(__FILE__)}/../lib") +$:.unshift(lib) unless $:.include?('lib') || $:.include?(lib) + require 'test/unit' require 'action_mailer' require 'action_mailer/test_case' @@ -14,7 +17,7 @@ ActionView::Template.register_template_handler :bak, lambda { |template| "Lame b FIXTURE_LOAD_PATH = File.expand_path('fixtures', File.dirname(__FILE__)) ActionMailer::Base.view_paths = FIXTURE_LOAD_PATH -class MockSMTP +class MockSMTP def self.deliveries @@deliveries end |