From 88de905ce2c73ebab0165fffddbd1dc5b5d5f9af Mon Sep 17 00:00:00 2001
From: Yasuo Honda <yasuo.honda@gmail.com>
Date: Thu, 28 Jun 2012 10:58:30 +0900
Subject: Skip test_setting_time_attribute because Oracle database does not
 have TIME data type.

---
 activerecord/test/cases/attribute_methods_test.rb | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'activerecord')

diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb
index 6c5a968454..ae24c2c655 100644
--- a/activerecord/test/cases/attribute_methods_test.rb
+++ b/activerecord/test/cases/attribute_methods_test.rb
@@ -792,6 +792,8 @@ class AttributeMethodsTest < ActiveRecord::TestCase
   end
 
   def test_setting_time_attribute
+    return skip "Oracle does not have TIME data type" if current_adapter? :OracleAdapter
+
     topic = Topic.new( "bonus_time(4i)"=> "01", "bonus_time(5i)" => "05" )
     assert_equal 1, topic.bonus_time.hour
     assert_equal 5, topic.bonus_time.min
-- 
cgit v1.2.3