Skip to content

Commit c344d61

Browse files
committed
Remove if current_adapter?(:PostgreSQLAdapter)
because Active Record `bin/test` only executes its own adapter tests. Test files under `test/cases/adapters` directory does not have to say `if current_adapter?` anymore.
1 parent a3f1eb5 commit c344d61

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

activerecord/test/cases/adapters/postgresql/datatype_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class PostgresqlTime < ActiveRecord::Base
77
# Declare attributes to get rid from deprecation warnings on ActiveRecord 6.1
88
attribute :time_interval, :string
99
attribute :scaled_time_interval, :interval
10-
end if current_adapter?(:PostgreSQLAdapter)
10+
end
1111

1212
class PostgresqlOid < ActiveRecord::Base
1313
end

activerecord/test/cases/adapters/postgresql/geometric_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class PostgresqlPoint < ActiveRecord::Base
1616
attribute :legacy_x, :legacy_point
1717
attribute :legacy_y, :legacy_point
1818
attribute :legacy_z, :legacy_point
19-
end if current_adapter?(:PostgreSQLAdapter)
19+
end
2020

2121
def setup
2222
@connection = ActiveRecord::Base.connection

activerecord/test/cases/adapters/postgresql/interval_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class IntervalDataType < ActiveRecord::Base
1212
attribute :default_term, :interval
1313
attribute :all_terms, :interval, array: true
1414
attribute :legacy_term, :string
15-
end if current_adapter?(:PostgreSQLAdapter)
15+
end
1616

1717
class DeprecatedIntervalDataType < ActiveRecord::Base; end
1818

0 commit comments

Comments
 (0)