RSpec::Core::Formatters::BaseTextFormatter
# File lib/fuubar.rb, line 68 def colors { :red => 31, :green => 32, :yellow => 33 } end
# File lib/fuubar.rb, line 35 def example_failed(example) super @state = :red output.print "\e[K" instafail.example_failed(example) output.puts increment end
# File lib/fuubar.rb, line 24 def example_passed(example) super increment end
# File lib/fuubar.rb, line 29 def example_pending(example) super @state = :yellow unless @state == :red increment end
# File lib/fuubar.rb, line 16 def increment with_color do @finished_count += 1 @progress_bar.instance_variable_set("@title", " #{finished_count}/#{example_count}") @progress_bar.inc end end
# File lib/fuubar.rb, line 54 def instafail @instafail ||= RSpec::Instafail.new(output) end
# File lib/fuubar.rb, line 9 def start(example_count) @example_count = example_count @finished_count = 0 @progress_bar = ProgressBar.new(" #{example_count} examples", example_count, output) @progress_bar.bar_mark = '=' end
Generated with the Darkfish Rdoc Generator 2.