Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
突き(ラッシュ)の速さ比べ
require 'spec/runner/formatter/progress_bar_formatter'
class JojoRushFormatter < Spec::Runner::Formatter::ProgressBarFormatter
def example_failed(example, counter, failure)
@output.print colorize_failure('無駄', failure)
@output.flush
end
def example_passed(example)
@output.print green('オラ')
@output.flush
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment