Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't hide deeper LoadErrors

  • Loading branch information...
commit 2db8571edf105c7c68e06eea385b032951042ef8 1 parent e9aa975
@jeremy jeremy authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 actionpack/test/controller/assert_select_test.rb
View
5 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
Please sign in to comment.
Something went wrong with that request. Please try again.