Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lolaodelola/1760d516869316d62de2fa28382bfd4f to your computer and use it in GitHub Desktop.
Save lolaodelola/1760d516869316d62de2fa28382bfd4f to your computer and use it in GitHub Desktop.
it 'enques the text' do
confirmed_dev = Developer.create(phone_number: "1234456", confirmed: true)
affirmations = Affirmation.create([{affirmation: "this is one"}, {affirmation: "this is two"}, {affirmation: "this is three"}])
ActiveJob::Base.queue_adapter = :test
expect { SendAffirmationJob.new.deliver(confirmed_dev, affirmations.first) }.to have_enqueued_job
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment