Sha256: 353a6e8c46143d285637b0931d8f7c3dfce158b8c60ae82da069e2966829fb31
Contents?: true
Size: 517 Bytes
Versions: 4
Compression:
Stored size: 517 Bytes
Contents
require_relative '../lib/inline_svg' describe InlineSvg::FindsAssetPaths do it "returns fully qualified file paths from Sprockets" do sprockets = double('SprocketsDouble') expect(sprockets).to receive(:find_asset).with('some-file'). and_return(double(pathname: Pathname('/full/path/to/some-file'))) InlineSvg.configure do |config| config.asset_finder = sprockets end expect(InlineSvg::FindsAssetPaths.by_filename('some-file')).to eq Pathname('/full/path/to/some-file') end end
Version data entries
4 entries across 4 versions & 1 rubygems