class Webspicy::Tester::Reporter
Constants
- ErrorCount
- HOOKS
Attributes
io[R]
tester[R]
Public Class Methods
new(io = STDOUT)
click to toggle source
# File lib/webspicy/tester/reporter.rb, line 6 def initialize(io = STDOUT) @io = io end
Public Instance Methods
find(kind)
click to toggle source
# File lib/webspicy/tester/reporter.rb, line 69 def find(kind) return self if self.is_a?(kind) raise "Missing reporter #{kind}" end
init(tester)
click to toggle source
# File lib/webspicy/tester/reporter.rb, line 11 def init(tester) @tester = tester end
Protected Instance Methods
plural(word, count)
click to toggle source
# File lib/webspicy/tester/reporter.rb, line 76 def plural(word, count) "%d #{word}#{count>1 ? 's' : ''}" % [count] end