diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-05-31 22:43:53 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-05-31 22:43:53 +0000 |
commit | d31830cf9cc863ed2f98c2d4cb90cf0e5d93e73e (patch) | |
tree | f9c47331207411fea435c5057dea209e869f5c13 /activesupport/lib/active_support/core_ext | |
parent | 05a17dc6b57e77171976a009b331511eae95200f (diff) | |
download | rails-d31830cf9cc863ed2f98c2d4cb90cf0e5d93e73e.tar.gz rails-d31830cf9cc863ed2f98c2d4cb90cf0e5d93e73e.tar.bz2 rails-d31830cf9cc863ed2f98c2d4cb90cf0e5d93e73e.zip |
fix test warnings
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4386 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
-rw-r--r-- | activesupport/lib/active_support/core_ext/load_error.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/core_ext/load_error.rb b/activesupport/lib/active_support/core_ext/load_error.rb index fac4639eed..6165e95443 100644 --- a/activesupport/lib/active_support/core_ext/load_error.rb +++ b/activesupport/lib/active_support/core_ext/load_error.rb @@ -8,7 +8,7 @@ class MissingSourceFile < LoadError #:nodoc: def is_missing?(path) path.gsub(/\.rb$/, '') == self.path.gsub(/\.rb$/, '') end - + def self.from_message(message) REGEXPS.each do |regexp, capture| match = regexp.match(message) @@ -16,12 +16,12 @@ class MissingSourceFile < LoadError #:nodoc: end nil end - + REGEXPS = [ [/^no such file to load -- (.+)$/i, 1], [/^Missing \w+ (file\s*)?([^\s]+.rb)$/i, 2], [/^Missing API definition file in (.+)$/i, 1] - ] + ] unless defined?(REGEXPS) end module ActiveSupport #:nodoc: |