From f0ba6aec2572c9032a4acd0d3405789c20079354 Mon Sep 17 00:00:00 2001 From: smudge Date: Fri, 5 Apr 2024 17:11:05 -0400 Subject: [PATCH] Fix 7.2 prerelease comparsion --- spec/delayed/active_job_adapter_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/delayed/active_job_adapter_spec.rb b/spec/delayed/active_job_adapter_spec.rb index 6bb3e84..402ee20 100644 --- a/spec/delayed/active_job_adapter_spec.rb +++ b/spec/delayed/active_job_adapter_spec.rb @@ -287,7 +287,7 @@ def perform(arg, kwarg:) end end - if ActiveJob.gem_version > Gem::Version.new('7.1') + if ActiveJob.gem_version.release >= Gem::Version.new('7.2') context 'when the given job sets enqueue_after_transaction_commit to true' do before do JobClass.include ActiveJob::EnqueueAfterTransactionCommit # normally run in an ActiveJob railtie