aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/abstract_unit.rb
diff options
context:
space:
mode:
authorJamis Buck <jamis@37signals.com>2007-01-30 03:14:55 +0000
committerJamis Buck <jamis@37signals.com>2007-01-30 03:14:55 +0000
commit3f4cbccb9cf4cf03ce81c43cbd155a818df4c04f (patch)
tree248e6a1e7db2ea465a597458a023e788c6720388 /activerecord/test/abstract_unit.rb
parentd5e122002a806324f1613b3213b3038770e4328f (diff)
downloadrails-3f4cbccb9cf4cf03ce81c43cbd155a818df4c04f.tar.gz
rails-3f4cbccb9cf4cf03ce81c43cbd155a818df4c04f.tar.bz2
rails-3f4cbccb9cf4cf03ce81c43cbd155a818df4c04f.zip
When dealing with SQLite3, use the table_info pragma helper, so that the bindings can do some translation for when sqlite3 breaks incompatibly between point releases. Also, make current_adapter? use is_a? instead of instance_of? to account correctly for adapter subclassing.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6091 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/abstract_unit.rb')
-rwxr-xr-xactiverecord/test/abstract_unit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/abstract_unit.rb b/activerecord/test/abstract_unit.rb
index 5108988a88..3fd94afc00 100755
--- a/activerecord/test/abstract_unit.rb
+++ b/activerecord/test/abstract_unit.rb
@@ -56,7 +56,7 @@ end
def current_adapter?(*types)
types.any? do |type|
ActiveRecord::ConnectionAdapters.const_defined?(type) &&
- ActiveRecord::Base.connection.instance_of?(ActiveRecord::ConnectionAdapters.const_get(type))
+ ActiveRecord::Base.connection.is_a?(ActiveRecord::ConnectionAdapters.const_get(type))
end
end