Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. it "does everything in the job too", perform_enqueued: true do
  2. end
  3.  
  4. config.around(:each) do |example|
  5. if example.metadata[:perform_enqueued]
  6. perform_enqueued_jobs do
  7. example.run
  8. end
  9. end
  10. end
  11.  
  12. undefined method `perform_enqueued_jobs=' for ActiveJob::QueueAdapters::InlineAdapter:Class
  13.  
  14. ActiveJob::Base.queue_adapter = :test
  15.  
  16. RSpec.configure do |config|
  17. # ...
  18. config.include ActiveJob::TestHelper
  19. end
  20.  
  21. perform_enqueued_jobs do
  22. example.run
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement