Sha256: 89c7d10a74066f954cacdb5a83589b2d9f84d3168d989c987db373df5263c7f8
Contents?: true
Size: 668 Bytes
Versions: 5
Compression:
Stored size: 668 Bytes
Contents
require 'test_helper' class DiscoApp::AppUninstalledJobTest < ActionController::TestCase include ActiveJob::TestHelper def setup @shop = disco_app_shops(:widget_store) perform_enqueued_jobs do DiscoApp::AppUninstalledJob.perform_later(@shop.shopify_domain, {}) end end def teardown @shop = nil end test 'app uninstalled job changes shop status' do assert_performed_jobs 1 @shop.reload assert @shop.uninstalled? end test 'app uninstalled job can be extended using concerns' do assert_performed_jobs 1 @shop.reload assert_equal 'Nowhere', @shop.country_name # Assert extended method called. end end
Version data entries
5 entries across 5 versions & 1 rubygems