From 336c2cbb8f728825139f2ab94b96726935ea18a1 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 7 Feb 2005 14:06:00 +0000 Subject: Added an Oracle adapter that works with the Oracle bindings by Yoshida (http://raa.ruby-lang.org/project/oracle/) #564 [Maik Schmidt] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@522 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/binary_test.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'activerecord/test/binary_test.rb') diff --git a/activerecord/test/binary_test.rb b/activerecord/test/binary_test.rb index 1e74b023bf..d635621cef 100644 --- a/activerecord/test/binary_test.rb +++ b/activerecord/test/binary_test.rb @@ -13,6 +13,10 @@ class BinaryTest < Test::Unit::TestCase if ActiveRecord::ConnectionAdapters.const_defined? :DB2Adapter return true if ActiveRecord::Base.connection.instance_of?(ActiveRecord::ConnectionAdapters::DB2Adapter) end + + if ActiveRecord::ConnectionAdapters.const_defined? :OracleAdapter + return true if ActiveRecord::Base.connection.instance_of?(ActiveRecord::ConnectionAdapters::OracleAdapter) + end bin = Binary.new bin.data = @data @@ -27,10 +31,10 @@ class BinaryTest < Test::Unit::TestCase db_bin = Binary.find(bin.id) assert db_bin.data == bin.data, - "Loaded binary data differes from memory version" + "Loaded binary data differs from memory version" assert db_bin.data == File.new(File.dirname(__FILE__)+"/fixtures/associations.png","rb").read, - "Loaded binary data differes from file version" + "Loaded binary data differs from file version" end private -- cgit v1.2.3