Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (14 sloc) 0.448 kb
require 'spec/runner/formatter/nested_text_formatter'
class FilteredFormatter < Spec::Runner::Formatter::NestedTextFormatter
def add_example_group(example_group)
if example_group.options[:show] == false
@showing = false
else
@showing = true
puts example_group.description
end
end
def example_passed(example)
puts " " << example.description if @showing unless example.options[:show] == false
end
end
Jump to Line
Something went wrong with that request. Please try again.