class XSpec::Notifier::Character
Outputs a single character for each executed unit of work representing the result.
Public Class Methods
new(out = $stdout)
click to toggle source
# File lib/xspec/notifiers.rb, line 61 def initialize(out = $stdout) @out = out end
Public Instance Methods
evaluate_finish(result)
click to toggle source
# File lib/xspec/notifiers.rb, line 65 def evaluate_finish(result) @out.print label_for_failure(result.errors[0]) @failed ||= result.errors.any? end
run_finish()
click to toggle source
# File lib/xspec/notifiers.rb, line 70 def run_finish @out.puts !@failed end
Protected Instance Methods
label_for_failure(f)
click to toggle source
# File lib/xspec/notifiers.rb, line 77 def label_for_failure(f) case f when CodeException then 'E' when Failure then 'F' else '.' end end