Skip to content

Commit

Permalink
Move ActiveJob test adapter configuration to support file
Browse files Browse the repository at this point in the history
  • Loading branch information
MiaSinek committed Oct 21, 2024
1 parent b065ca7 commit 3859148
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions spec/support/active_job.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
require 'active_job'

ActiveJob::Base.queue_adapter = :test
3 changes: 1 addition & 2 deletions spec/userlist/push/strategies/active_job/worker_spec.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
require 'spec_helper'

require 'userlist/push/strategies/active_job/worker'

ActiveJob::Base.queue_adapter = :test
require 'support/active_job'

RSpec.describe Userlist::Push::Strategies::ActiveJob::Worker do
subject { described_class.new(queue, config) }
Expand Down

0 comments on commit 3859148

Please sign in to comment.