Sha256: 313b2d1af704466d03083a021f53f00b22abc3d354d9bc24947d7a0097e744de
Contents?: true
Size: 1.28 KB
Versions: 1
Compression:
Stored size: 1.28 KB
Contents
require 'spec_helper' require 'shopify_theme/filters/whitelist' module ShopifyTheme module Filters describe "Whitelist" do TEST_PATHS = %w( settings.html config/item1.html config/item2.html config/item3.html layout/thing1.html assets/application.css.liquid assets/application.js templates/thing2.html snippets/fancy.liquid ) it "should use the default whitelist if nothing was provided" do whitelist = Whitelist.new expected = %w( config/item1.html config/item2.html config/item3.html layout/thing1.html assets/application.css.liquid assets/application.js templates/thing2.html snippets/fancy.liquid ) assert_equal expected, whitelist.select(TEST_PATHS) end it "should ignore the default 1+ whitelists were provided" do whitelist = Whitelist.new %w(settings.html config/item1.html config/item2.html config/item3.html layout/ templates/) expected = %w(settings.html config/item1.html config/item2.html config/item3.html layout/thing1.html templates/thing2.html) assert_equal expected, whitelist.select(TEST_PATHS) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shopify_theme-0.0.24 | spec/unit/filters/whitelist_spec.rb |