mardi 10 décembre 2019

ActiveJob never executed in ApplicationSystemTestCase

this script

class AppPreviewFlowTest < ApplicationSystemTestCase
  include ActiveJob::TestHelper


  test "should be able to upload a picture" do
   path = "test/fixtures/files/video.mp4"
   drop_in_dropzone Rails.root.join(path)

   click_on('Upload', wait: 30)
   assert_enqueued_jobs 1, except:  VideoUploadJob

   #test if video is uploaded
   assert 2 #failed 

   end


end

VideoUpload in the queue but never executed. I have tried to change the adapter for inline or Sidekiq but same result

Aucun commentaire:

Enregistrer un commentaire