1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #6890 from yahonda/address_test_setting_time_attribute_oracle

Skip test_setting_time_attribute for Oracle database
This commit is contained in:
Carlos Antonio da Silva 2012-06-28 05:30:46 -07:00
commit e70ac2ae65

View file

@ -792,6 +792,8 @@ class AttributeMethodsTest < ActiveRecord::TestCase
end end
def test_setting_time_attribute 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" ) topic = Topic.new( "bonus_time(4i)"=> "01", "bonus_time(5i)" => "05" )
assert_equal 1, topic.bonus_time.hour assert_equal 1, topic.bonus_time.hour
assert_equal 5, topic.bonus_time.min assert_equal 5, topic.bonus_time.min