Skip to content

Commit

Permalink
test suite: don't use Rails 3, avoid deprecation warning with 2.3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Sep 9, 2010
1 parent d2fb846 commit 060e61d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/boot.rb
Expand Up @@ -15,7 +15,7 @@
if version
gem 'rails', version
else
gem 'actionpack'
gem 'activerecord'
gem 'actionpack', '< 3.0.0.a'
gem 'activerecord', '< 3.0.0.a'
end
end
3 changes: 2 additions & 1 deletion test/lib/activerecord_test_connector.rb
Expand Up @@ -28,7 +28,8 @@ def self.setup

def self.add_load_path(path)
dep = defined?(ActiveSupport::Dependencies) ? ActiveSupport::Dependencies : ::Dependencies
dep.load_paths.unshift path
autoload_paths = dep.respond_to?(:autoload_paths) ? dep.autoload_paths : dep.load_paths
autoload_paths.unshift path
end

def self.setup_connection
Expand Down

0 comments on commit 060e61d

Please sign in to comment.