From beff664f2a036c91e266e2ad867f3d1ed8d716c8 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 27 Oct 2005 08:18:41 +0000 Subject: Refactor DB exceptions and deal more with DB2 (closes #2624) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2761 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/fixtures_test.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'activerecord/test/fixtures_test.rb') diff --git a/activerecord/test/fixtures_test.rb b/activerecord/test/fixtures_test.rb index 69ffcc6019..7666777184 100755 --- a/activerecord/test/fixtures_test.rb +++ b/activerecord/test/fixtures_test.rb @@ -53,9 +53,7 @@ class FixturesTest < Test::Unit::TestCase def test_inserts_with_pre_and_suffix # not supported yet in OCI adapter - if ActiveRecord::ConnectionAdapters.const_defined? :OCIAdapter - return true if ActiveRecord::Base.connection.instance_of?(ActiveRecord::ConnectionAdapters::OCIAdapter) - end + return true if current_adapter?(:OCIAdapter) ActiveRecord::Base.connection.create_table :prefix_topics_suffix do |t| t.column :title, :string -- cgit v1.2.3