aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/integration/queuing_test.rb
blob: bf6137af4c62425356db96428a0c60ab1171ae7c (plain) (blame)
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