diff options
author | Sean Abrahams <abrahams@gmail.com> | 2019-03-08 21:54:48 -0800 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2019-03-09 11:24:48 +0530 |
commit | 6ef90c40f21e68a327d25fe8b90613803303a7b9 (patch) | |
tree | 0f0997c45b68934709adcd975cb6491676ae4706 /guides/source | |
parent | 413173c285ffb8a4144fdf8a91050730b7a9a17c (diff) | |
download | rails-6ef90c40f21e68a327d25fe8b90613803303a7b9.tar.gz rails-6ef90c40f21e68a327d25fe8b90613803303a7b9.tar.bz2 rails-6ef90c40f21e68a327d25fe8b90613803303a7b9.zip |
Guides: Fix parent class of model test example (#35065)
* Fix parent class of model test example
* include ActiveJob::TestHelper
[ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/testing.md | 4 |
1 files changed, 3 insertions, 1 deletions
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) |