Skip to content

@jeffkreeftmeijer /README.textile
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A stupid RSpec formatter that prints FFFUUU instead of FFFFF. Heh.

FffuuuFormatter

A stupid RSpec formatter that prints FFFUUU instead of FFFFF. Heh.

Installation

Throw it in a file and run your specs like this:

$ rspec -r path/to/fffuuu_formatter.rb -f FffuuuFormatter spec/

If you want to use this as your default formatter, put this into your .rspec file:

-r path/to/fffuuu_formatter.rb
  -f FffuuuFormatter
require 'rspec/core/formatters/progress_formatter'
class FffuuuFormatter < RSpec::Core::Formatters::ProgressFormatter
def example_failed(example)
@failed_examples << example
letter = (@example_count / 2 >= @failed_examples.count) ? 'F' : 'U'
output.print red(letter)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.