aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/binary_test.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-02-07 14:06:00 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-02-07 14:06:00 +0000
commit336c2cbb8f728825139f2ab94b96726935ea18a1 (patch)
tree1943ecb94336aae84d458a97bd376306dac1118d /activerecord/test/binary_test.rb
parent8382e6e50681fef860fb2856af12fa72853a8488 (diff)
downloadrails-336c2cbb8f728825139f2ab94b96726935ea18a1.tar.gz
rails-336c2cbb8f728825139f2ab94b96726935ea18a1.tar.bz2
rails-336c2cbb8f728825139f2ab94b96726935ea18a1.zip
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
Diffstat (limited to 'activerecord/test/binary_test.rb')
-rw-r--r--activerecord/test/binary_test.rb8
1 files changed, 6 insertions, 2 deletions
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