def stub_asset_config(inst, hash = nil)
      (hash = inst; inst = nil) if inst.is_a?(Hash)
      inst = @site || site unless inst

      hash = Jekyll::Assets::Config.merge(hash)
      allow(inst).to receive(:config).and_return(inst.config.merge({
        "assets" => hash
      }))
    end
def stub_asset_config(inst, hash = nil)
      (hash = inst; inst = nil) if inst.is_a?(Hash)
      inst = @site || site unless inst

      hash = Jekyll::Assets::Config.merge(hash)
      allow(inst).to receive(:config).and_return(inst.config.merge({
        "assets" => hash
      }))
    end
------------------------------------------------------------------------
 Stubs the asset config on Jekyll for you, this is meant to be used
 in a new context or at the top of a context so that you can stub the
 configuration and have it reset afterwards.
 ------------------------------------------------------------------------