@@ -23,13 +23,13 @@ def perform(arg)
2323 end
2424
2525 test "batch will be completed on success" do
26- batch = SolidQueue ::JobBatch . enqueue ( on_finish : BatchCompletionJob ) { }
26+ batch = SolidQueue ::JobBatch . enqueue ( on_finish : BatchCompletionJob ) { }
2727 assert_not_nil batch . on_finish_active_job
2828 assert_equal BatchCompletionJob . name , batch . on_finish_active_job [ "job_class" ]
2929 end
3030
3131 test "batch will be completed on finish" do
32- batch = SolidQueue ::JobBatch . enqueue ( on_success : BatchCompletionJob ) { }
32+ batch = SolidQueue ::JobBatch . enqueue ( on_success : BatchCompletionJob ) { }
3333 assert_not_nil batch . on_success_active_job
3434 assert_equal BatchCompletionJob . name , batch . on_success_active_job [ "job_class" ]
3535 end
@@ -41,7 +41,7 @@ def perform(arg)
4141 end
4242
4343 assert_equal 2 , SolidQueue ::Job . count
44- assert_equal [ batch . id ] * 2 , SolidQueue ::Job . last ( 2 ) . map ( &:batch_id )
44+ assert_equal [ batch . id ] * 2 , SolidQueue ::Job . last ( 2 ) . map ( &:batch_id )
4545 end
4646
4747 test "batch id is present inside the block" do
@@ -60,7 +60,7 @@ def perform(arg)
6060 end
6161
6262 assert_not_nil SolidQueue ::JobBatch . last . on_finish_active_job [ "arguments" ]
63- assert_equal SolidQueue ::JobBatch . last . on_finish_active_job [ "arguments" ] , [ 1 , 2 ]
63+ assert_equal SolidQueue ::JobBatch . last . on_finish_active_job [ "arguments" ] , [ 1 , 2 ]
6464 assert_equal SolidQueue ::JobBatch . last . on_finish_active_job [ "queue_name" ] , "batch"
6565 end
6666end
0 commit comments