Sha256: 9e73fcd3b23b1e4399d9baec0de834db518b94fa8e27b451019bdc45fd9f5de4
Contents?: true
Size: 906 Bytes
Versions: 1
Compression:
Stored size: 906 Bytes
Contents
require 'spec_helper' require 'shopify_theme/filters/blacklist' module ShopifyTheme module Filters describe "Blacklist" 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 return the entire list back if initialized with no patterns" do blacklist = Blacklist.new assert_equal TEST_PATHS, blacklist.select(TEST_PATHS) end it "should return everything except for the items that matched the pattern" do blacklist = Blacklist.new(%w(config/* settings.html assets/* templates/* snippets/*)) assert_equal %w(layout/thing1.html), blacklist.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/blacklist_spec.rb |