Sha256: 08f848ac1d745fff5956db44fa070a9f266928e8c4288a5091e50e4f9c91f635
Contents?: true
Size: 505 Bytes
Versions: 7
Compression:
Stored size: 505 Bytes
Contents
require 'mspec/runner/filters/match' class TagFilter def initialize(what, *tags) @what = what @tags = tags end def load desc = MSpec.read_tags(*@tags).map { |t| t.description } @filter = MatchFilter.new(@what, *desc) @filter.register end def unload @filter.unregister if @filter end def register MSpec.register :load, self MSpec.register :unload, self end def unregister MSpec.unregister :load, self MSpec.unregister :unload, self end end
Version data entries
7 entries across 7 versions & 1 rubygems