Skip to content

Instantly share code, notes, and snippets.

@twada
Created May 11, 2011 09:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save twada/966156 to your computer and use it in GitHub Desktop.
Save twada/966156 to your computer and use it in GitHub Desktop.
突き(ラッシュ)の速さ比べ
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