mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
fix up actionmailer load path
This commit is contained in:
parent
6c8d852056
commit
f0fe555d84
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue