TagListAction - prints out the descriptions for any specs tagged with tags. If tags is an empty list, prints out descriptions for any specs that are tagged.
Returns true if any tagged descriptions matches string.
# File lib/mspec/runner/actions/taglist.rb, line 19 def ===(string) @filter === string end
Prints the spec description if it matches the filter.
# File lib/mspec/runner/actions/taglist.rb, line 40 def after(state) return unless self === state.description print state.description, "\n" end
Returns true. This enables us to match any tag when loading tags from the file.
# File lib/mspec/runner/actions/taglist.rb, line 14 def include?(arg) true end
Creates a MatchFilter for specific tags or for all tags.
# File lib/mspec/runner/actions/taglist.rb, line 33 def load @filter = nil desc = MSpec.read_tags(@tags || self).map { |t| t.description } @filter = MatchFilter.new(nil, *desc) unless desc.empty? end
# File lib/mspec/runner/actions/taglist.rb, line 45 def register MSpec.register :start, self MSpec.register :load, self MSpec.register :after, self end
Generated with the Darkfish Rdoc Generator 2.