aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYasuo Honda <yasuo.honda@gmail.com>2012-06-28 10:58:30 +0900
committerYasuo Honda <yasuo.honda@gmail.com>2012-06-28 10:58:30 +0900
commit88de905ce2c73ebab0165fffddbd1dc5b5d5f9af (patch)
treec322760b84222c1bb5aa77b44b355364389b40ab
parent3dc753fa51fef19663b3d666211cdaccd5de010f (diff)
downloadrails-88de905ce2c73ebab0165fffddbd1dc5b5d5f9af.tar.gz
rails-88de905ce2c73ebab0165fffddbd1dc5b5d5f9af.tar.bz2
rails-88de905ce2c73ebab0165fffddbd1dc5b5d5f9af.zip
Skip test_setting_time_attribute because Oracle database
does not have TIME data type.
-rw-r--r--activerecord/test/cases/attribute_methods_test.rb2
1 files changed, 2 insertions, 0 deletions
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