Skip to content

Commit 147e89a

Browse files
Let's use the appropriate place for this
1 parent 71c823f commit 147e89a

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

spec/support/unit/helpers/active_record_versions.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,9 @@ def self.configure_example_group(example_group)
1010
def active_record_version
1111
Tests::Version.new(::ActiveRecord::VERSION::STRING)
1212
end
13+
14+
def active_record_gte_8_1?
15+
active_record_version >= '8.1'
16+
end
1317
end
1418
end

spec/support/unit/helpers/rails_versions.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,12 @@ def rails_version
1111
Tests::Version.new(Rails::VERSION::STRING)
1212
end
1313

14-
def active_record_version
15-
Tests::Version.new(::ActiveRecord::VERSION::STRING)
16-
end
17-
1814
def rails_oldest_version_supported
1915
7.1
2016
end
2117

2218
def rails_gt_8_0?
2319
rails_version >= '8.0'
2420
end
25-
26-
def active_record_gte_8_1?
27-
active_record_version >= '8.1'
28-
end
2921
end
3022
end

0 commit comments

Comments
 (0)