Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- it "does everything in the job too", perform_enqueued: true do
- end
- config.around(:each) do |example|
- if example.metadata[:perform_enqueued]
- perform_enqueued_jobs do
- example.run
- end
- end
- end
- undefined method `perform_enqueued_jobs=' for ActiveJob::QueueAdapters::InlineAdapter:Class
- ActiveJob::Base.queue_adapter = :test
- RSpec.configure do |config|
- # ...
- config.include ActiveJob::TestHelper
- end
- perform_enqueued_jobs do
- example.run
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement