@@ -160,19 +160,11 @@ def test_table_exists
160
160
end
161
161
162
162
def test_preserving_date_objects
163
- if current_adapter? ( :SybaseAdapter )
164
- # Sybase ctlib does not (yet?) support the date type; use datetime instead.
165
- assert_kind_of (
166
- Time , Topic . find ( 1 ) . last_read ,
167
- "The last_read attribute should be of the Time class"
168
- )
169
- else
170
- # Oracle enhanced adapter allows to define Date attributes in model class (see topic.rb)
171
- assert_kind_of (
172
- Date , Topic . find ( 1 ) . last_read ,
173
- "The last_read attribute should be of the Date class"
174
- )
175
- end
163
+ # Oracle enhanced adapter allows to define Date attributes in model class (see topic.rb)
164
+ assert_kind_of (
165
+ Date , Topic . find ( 1 ) . last_read ,
166
+ "The last_read attribute should be of the Date class"
167
+ )
176
168
end
177
169
178
170
def test_previously_changed
@@ -480,8 +472,8 @@ def test_default_values
480
472
end
481
473
end
482
474
483
- # Oracle, and Sybase do not have a TIME datatype.
484
- unless current_adapter? ( :OracleAdapter , :SybaseAdapter )
475
+ # Oracle does not have a TIME datatype.
476
+ unless current_adapter? ( :OracleAdapter )
485
477
def test_utc_as_time_zone
486
478
with_timezone_config default : :utc do
487
479
attributes = { "bonus_time" => "5:42:00AM" }
@@ -515,12 +507,7 @@ def test_default_values_on_empty_strings
515
507
topic = Topic . find ( topic . id )
516
508
assert_nil topic . last_read
517
509
518
- # Sybase adapter does not allow nulls in boolean columns
519
- if current_adapter? ( :SybaseAdapter )
520
- assert topic . approved == false
521
- else
522
- assert_nil topic . approved
523
- end
510
+ assert_nil topic . approved
524
511
end
525
512
526
513
def test_equality
@@ -685,8 +672,8 @@ def test_group_weirds_by_from
685
672
end
686
673
687
674
def test_attributes_on_dummy_time
688
- # Oracle, and Sybase do not have a TIME datatype.
689
- return true if current_adapter? ( :OracleAdapter , :SybaseAdapter )
675
+ # Oracle does not have a TIME datatype.
676
+ return true if current_adapter? ( :OracleAdapter )
690
677
691
678
with_timezone_config default : :local do
692
679
attributes = {
@@ -699,8 +686,8 @@ def test_attributes_on_dummy_time
699
686
end
700
687
701
688
def test_attributes_on_dummy_time_with_invalid_time
702
- # Oracle, and Sybase do not have a TIME datatype.
703
- return true if current_adapter? ( :OracleAdapter , :SybaseAdapter )
689
+ # Oracle does not have a TIME datatype.
690
+ return true if current_adapter? ( :OracleAdapter )
704
691
705
692
attributes = {
706
693
"bonus_time" => "not a time"
0 commit comments