diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-10-27 08:18:41 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-10-27 08:18:41 +0000 |
commit | beff664f2a036c91e266e2ad867f3d1ed8d716c8 (patch) | |
tree | a175c7bc0ed6affea55d1595577a2c37e38c74e0 /activerecord/test/fixtures_test.rb | |
parent | f15819e8f0cece48ccd5117a37cf6d37374d1bb1 (diff) | |
download | rails-beff664f2a036c91e266e2ad867f3d1ed8d716c8.tar.gz rails-beff664f2a036c91e266e2ad867f3d1ed8d716c8.tar.bz2 rails-beff664f2a036c91e266e2ad867f3d1ed8d716c8.zip |
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
Diffstat (limited to 'activerecord/test/fixtures_test.rb')
-rwxr-xr-x | activerecord/test/fixtures_test.rb | 4 |
1 files changed, 1 insertions, 3 deletions
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 |