lib/rgot/t.rb in rgot-0.0.5 vs lib/rgot/t.rb in rgot-0.1.0

- old
+ new

@@ -1,12 +1,11 @@ module Rgot class T < Common - def initialize(test_module, name, opts={}) + def initialize(test_module, name) super() @module = test_module @name = name - @opts = opts @module.extend @module end def run begin @@ -22,10 +21,10 @@ def report duration = Rgot.now - @start template = "--- %s: %s (%.5fs)\n%s" if failed? printf template, "FAIL", @name, duration, @output - elsif @opts[:verbose] + elsif Rgot.verbose? if skipped? printf template, "SKIP", @name, duration, @output else printf template, "PASS", @name, duration, @output end