Sha256: 8816719a6376842b5b40519cf8e23b53607a4dc57b64acb032832706203ef80a
Contents?: true
Size: 757 Bytes
Versions: 3
Compression:
Stored size: 757 Bytes
Contents
require_relative '../test_helper' require_relative '../../lib/signore/tags' module Signore describe Tags do describe '#match?' do it 'is a predicate whether the Tags match the given list of tags' do tags = %w(programming tech) assert Tags.new.match?(nil) assert Tags.new(forbidden: %w(fnord)).match?(nil) assert Tags.new.match?(tags) assert Tags.new(required: %w(programming)).match?(tags) assert Tags.new(required: %w(programming tech)).match?(tags) refute Tags.new(required: %w(programming tech Ruby)).match?(tags) refute Tags.new(forbidden: %w(programming)).match?(tags) refute Tags.new(forbidden: %w(tech), required: %w(tech)).match?(tags) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
signore-0.4.2 | test/signore/tags_test.rb |
signore-0.4.1 | test/signore/tags_test.rb |
signore-0.4.0 | test/signore/tags_test.rb |