diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-11-09 23:28:36 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-11-09 23:28:36 -0600 |
commit | 11e798ae0f2f46498811282756c9d21df3d4b523 (patch) | |
tree | 460a4afcd2b25cede89f2e2c785244dbcc97656f /actionmailer | |
parent | 23229d5ad4cf1c222d4d8c4561fbdff284f9bdee (diff) | |
download | rails-11e798ae0f2f46498811282756c9d21df3d4b523.tar.gz rails-11e798ae0f2f46498811282756c9d21df3d4b523.tar.bz2 rails-11e798ae0f2f46498811282756c9d21df3d4b523.zip |
Avoid adding component lib/ to load path multiple times
Diffstat (limited to 'actionmailer')
-rw-r--r-- | actionmailer/test/abstract_unit.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionmailer/test/abstract_unit.rb b/actionmailer/test/abstract_unit.rb index fcbaa9e186..e84b3b0d23 100644 --- a/actionmailer/test/abstract_unit.rb +++ b/actionmailer/test/abstract_unit.rb @@ -4,9 +4,11 @@ begin rescue LoadError $:.unshift("#{root}/activesupport/lib") $:.unshift("#{root}/actionpack/lib") - $:.unshift("#{root}/actionmailer/lib") end +lib = File.expand_path("#{File.dirname(__FILE__)}/../lib") +$:.unshift(lib) unless $:.include?('lib') || $:.include?(lib) + require 'rubygems' require 'test/unit' |