Skip to content
Browse files

Ruby 1.9.3 fix for Rails 2.3

  • Loading branch information...
1 parent ccae12c commit e38c8fbbfc7c1a1450834ce3967710f8566eadf4 @yabawock yabawock committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/test_adapters/rails_2.rb
View
5 test/test_adapters/rails_2.rb
@@ -1,6 +1,11 @@
require 'test_helper'
require 'rack/test'
+# Patches active_support/core_ext/load_error.rb to support 1.9.3 LoadError message
+if RUBY_VERSION >= '1.9.3'
+ MissingSourceFile::REGEXPS << [/^cannot load such file -- (.+)$/i, 1]
+end
+
require File.expand_path("../../dummy/app/controllers/some_controller.rb", __FILE__)
require File.expand_path("../../dummy/app/controllers/tests_controller.rb", __FILE__)

0 comments on commit e38c8fb

Please sign in to comment.
Something went wrong with that request. Please try again.