class Manacle::Formatter
Public Class Methods
new(output)
click to toggle source
# File lib/manacle/formatter.rb, line 87 def initialize(output) @output = output end
Public Instance Methods
example_failed(notification)
click to toggle source
# File lib/manacle/formatter.rb, line 111 def example_failed(notification) @failed_count += 1 end
example_finished(notification)
click to toggle source
# File lib/manacle/formatter.rb, line 119 def example_finished(notification) @examples.add(notification.example, ApiBanking::SoapClient.last_response) end
example_passed(notification)
click to toggle source
# File lib/manacle/formatter.rb, line 107 def example_passed(notification) @passed_count += 1 end
example_pending(notification)
click to toggle source
# File lib/manacle/formatter.rb, line 115 def example_pending(notification) @pending_count += 1 end
example_started(notification)
click to toggle source
# File lib/manacle/formatter.rb, line 103 def example_started(notification) @count += 1 end
start(notification)
click to toggle source
# File lib/manacle/formatter.rb, line 91 def start(notification) @examples = ExampleList.new @count = 0 @passed_count = 0 @failed_count = 0 @pending_count = 0 end
stop(notification)
click to toggle source
# File lib/manacle/formatter.rb, line 99 def stop(notification) @output << @examples.render end