Sha256: 3f39ce655687f1409ecda5414f54e4cf8d2259ac616f3dcb0db7b64c8d318bff
Contents?: true
Size: 597 Bytes
Versions: 50
Compression:
Stored size: 597 Bytes
Contents
# This is an example of how you can use a custom formatter to do custom # reporting. This formatter will only report example groups and examples that # have :report => true (or anything truthy) in the declaration. See # options_example.rb in this directory. require 'spec/runner/formatter/base_text_formatter' class OptionsFormatter < Spec::Runner::Formatter::BaseTextFormatter def example_started(proxy) if proxy.options[:report] puts proxy.description end end def example_group_started(proxy) if proxy.options[:report] puts proxy.description end end end
Version data entries
50 entries across 50 versions & 11 rubygems