test/activejob_adapter_test.rb in dynflow-1.8.2 vs test/activejob_adapter_test.rb in dynflow-1.8.3

- old
+ new

@@ -1,6 +1,7 @@ # frozen_string_literal: true + require_relative 'test_helper' require 'active_job' require 'dynflow/active_job/queue_adapter' module Dynflow @@ -19,11 +20,11 @@ let :world do WorldFactory.create_world end before(:all) do - ::ActiveJob::QueueAdapters.send(:include, ::Dynflow::ActiveJob::QueueAdapters) + ::ActiveJob::QueueAdapters.include ::Dynflow::ActiveJob::QueueAdapters ::ActiveJob::Base.queue_adapter = :dynflow dynflow_mock = Minitest::Mock.new dynflow_mock.expect(:world, world) rails_app_mock = Minitest::Mock.new rails_app_mock .expect(:dynflow, dynflow_mock) @@ -69,6 +70,5 @@ assert world.persistence.load_execution_plan(job.provider_job_id) assert_match(/Enqueued Dynflow::SampleJob.*at.*UTC/, out) end end end -