1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
require 'helper' require 'jobs/logging_job' require 'active_support/core_ext/numeric/time' class QueuingTest < ActiveSupport::TestCase setup do end test 'run queued job' do id = "AJ-#{SecureRandom.uuid}" TestJob.enqueue id sleep 2 assert Dummy::Application.root.join("tmp/#{id}").exist? end end