Permalink
Browse files

Don't hide deeper LoadErrors

  • Loading branch information...
1 parent e9aa975 commit 2db8571edf105c7c68e06eea385b032951042ef8 @jeremy jeremy committed Nov 23, 2008
Showing with 3 additions and 2 deletions.
  1. +3 −2 actionpack/test/controller/assert_select_test.rb
@@ -9,9 +9,10 @@
unless defined?(ActionMailer)
begin
- $:.unshift(File.dirname(__FILE__) + "/../../../actionmailer/lib")
+ $:.unshift("#{File.dirname(__FILE__)}/../../../actionmailer/lib")
require 'action_mailer'
- rescue LoadError
+ rescue LoadError => e
+ raise unless e.message =~ /action_mailer/
require 'rubygems'
gem 'actionmailer'
end

0 comments on commit 2db8571

Please sign in to comment.