Sha256: e699059e9feaa6b5cec31e932b2fdffe1fb74faa9f32f59325d78d497a830401
Contents?: true
Size: 644 Bytes
Versions: 62
Compression:
Stored size: 644 Bytes
Contents
require 'test_helper' module Workarea class FindPipelineAssetTest < TestCase def test_path path = FindPipelineAsset.new('foo.png').path assert(path.to_s.ends_with?('/app/assets/images/workarea/core/foo.png'), path) name = 'placeholder.png' path = FindPipelineAsset.new(name).path assert_includes(path.to_s, "app/assets/images/workarea/core/#{name}") path = FindPipelineAsset.new('foo', path: %w(data workarea core)).path assert_includes(path.to_s, 'data/workarea/core/foo') path = FindPipelineAsset.new('test.jpg').path assert_includes(path.to_s, 'storefront') end end end
Version data entries
62 entries across 62 versions & 1 rubygems