test/integration/synchronises_test.rb in disco_app-0.16.1 vs test/integration/synchronises_test.rb in disco_app-0.17.0
- old
+ new
@@ -1,8 +1,9 @@
require 'test_helper'
class SynchronisesTest < ActionDispatch::IntegrationTest
+
include ActiveJob::TestHelper
fixtures :all
def setup
@shop = disco_app_shops(:widget_store)
@@ -55,10 +56,10 @@
end
test 'shopify api model still allows synchronisation' do
assert_equal({}, @product.data)
- shopify_product = ShopifyAPI::Product.new(ActiveSupport::JSON.decode(webhook_fixture('product_updated')))
+ shopify_product = ShopifyAPI::Product.new(JSON.parse(webhook_fixture('product_updated')))
Product.synchronise(@shop, shopify_product)
# Assert the product was updated locally, with the correct attributes.
@product.reload
assert_equal 632910393, @product.id