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:
commit
e70ac2ae65
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue