Sha256: 7cc811740a543d9fbcd055c34fb3fcb358da54b96e0771b22b9c16041fc976b5
Contents?: true
Size: 765 Bytes
Versions: 9
Compression:
Stored size: 765 Bytes
Contents
# frozen_string_literal: true require 'test_helper' class AssetTest < Test::Unit::TestCase def test_get_assetss fake("themes/1/assets", method: :get, body: load_fixture('assets')) ShopifyAPI::Asset.find(:all, params: { theme_id: 1 }) end def test_get_asset_namespaced fake( "themes/1/assets.json?asset%5Bkey%5D=templates%2Findex.liquid&theme_id=1", extension: false, method: :get, body: load_fixture('asset') ) ShopifyAPI::Asset.find('templates/index.liquid', params: { theme_id: 1 }) end def test_get_asset fake( "assets.json?asset%5Bkey%5D=templates%2Findex.liquid", extension: false, method: :get, body: load_fixture('asset') ) ShopifyAPI::Asset.find('templates/index.liquid') end end
Version data entries
9 entries across 9 versions & 2 rubygems