Permalink
Browse files

Skip test_setting_time_attribute because Oracle database

does not have TIME data type.
  • Loading branch information...
1 parent 3dc753f commit 88de905ce2c73ebab0165fffddbd1dc5b5d5f9af @yahonda yahonda committed Jun 28, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 activerecord/test/cases/attribute_methods_test.rb
@@ -792,6 +792,8 @@ def title=(val); self.author_name = val; end
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

0 comments on commit 88de905

Please sign in to comment.