Sha256: e50bc70384542b37febebde8e831f8470a9ebc827842fb1859a8f48642e2e5e5
Contents?: true
Size: 551 Bytes
Versions: 2
Compression:
Stored size: 551 Bytes
Contents
if ENV['AJADAPTER'] == 'delayed_job' generate "delayed_job:active_record", "--quiet" rake("db:migrate") end initializer 'activejob.rb', <<-CODE require "#{File.expand_path("../jobs_manager.rb", __FILE__)}" JobsManager.current_manager.setup CODE file 'app/jobs/test_job.rb', <<-CODE class TestJob < ActiveJob::Base queue_as :integration_tests def perform(x) sleep(1) File.open(Rails.root.join("tmp/\#{x}"), "w+") do |f| f.write x end end end CODE file 'app/jobs/test_job2.rb', <<-CODE class TestJob2 < TestJob end CODE
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activejob-lock-0.0.2 | rails/activejob/test/support/integration/dummy_app_template.rb |
activejob-lock-0.0.1 | rails/activejob/test/support/integration/dummy_app_template.rb |