From 6ef90c40f21e68a327d25fe8b90613803303a7b9 Mon Sep 17 00:00:00 2001 From: Sean Abrahams Date: Fri, 8 Mar 2019 21:54:48 -0800 Subject: Guides: Fix parent class of model test example (#35065) * Fix parent class of model test example * include ActiveJob::TestHelper [ci skip] --- guides/source/testing.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'guides') diff --git a/guides/source/testing.md b/guides/source/testing.md index 623380970e..8f3a7f67c0 100644 --- a/guides/source/testing.md +++ b/guides/source/testing.md @@ -1722,7 +1722,9 @@ within a model: ```ruby require 'test_helper' -class ProductTest < ActiveJob::TestCase +class ProductTest < ActiveSupport::TestCase + include ActiveJob::TestHelper + test 'billing job scheduling' do assert_enqueued_with(job: BillingJob) do product.charge(account) -- cgit v1.2.3