From 3e3a528b5647f4d21f2fbd730aef8678d1b309f3 Mon Sep 17 00:00:00 2001 From: BlazingRockStorm Date: Mon, 12 Aug 2024 21:43:03 +0900 Subject: [PATCH] add test job --- spec/jobs/update_artist_pop_points_job_spec.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/spec/jobs/update_artist_pop_points_job_spec.rb b/spec/jobs/update_artist_pop_points_job_spec.rb index 7199258..4161f3b 100644 --- a/spec/jobs/update_artist_pop_points_job_spec.rb +++ b/spec/jobs/update_artist_pop_points_job_spec.rb @@ -3,5 +3,11 @@ require 'rails_helper' RSpec.describe UpdateArtistPopPointsJob do - pending "add some examples to (or delete) #{__FILE__}" + describe 'perform_later' do + it 'enqueue job' do + ActiveJob::Base.queue_adapter = :test + described_class.perform_later + expect(described_class).to have_been_enqueued + end + end end