Sha256: d5c5faedb308b6cd542400020a5900278bc528bcdcbd2280f1c8ea20c1efe479
Contents?: true
Size: 536 Bytes
Versions: 2
Compression:
Stored size: 536 Bytes
Contents
require 'spec_helper' require 'shopify_theme/filters/command_input' module ShopifyTheme module Filters describe "CommandInput" do it "should return the entire list if initialized with nothing" do filter = CommandInput.new([]) assert_equal %w(a b c d e f), filter.select(%w(a b c d e f)) end it "should return a subset if initialized with some values" do filter = CommandInput.new(%w(a c d)) assert_equal %w(a c d a), filter.select(%w(a b c d e a f)) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shopify_theme-0.0.25 | spec/unit/filters/command_input_spec.rb |
shopify_theme-0.0.24 | spec/unit/filters/command_input_spec.rb |