Sha256: 38ee82bab71cbbbaf8f814dc5757047601b22a89ad41d03acef605bb656398f2
Contents?: true
Size: 536 Bytes
Versions: 2
Compression:
Stored size: 536 Bytes
Contents
require 'spec_helper' require 'haravan_theme/filters/command_input' module HaravanTheme 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 |
---|---|
haravan_theme-0.0.26 | spec/unit/filters/command_input_spec.rb |
haravan_theme-0.0.25 | spec/unit/filters/command_input_spec.rb |