lib/rgot/t.rb in rgot-0.1.4 vs lib/rgot/t.rb in rgot-0.1.5

- old
+ new

@@ -18,11 +18,11 @@ end end def report duration = Rgot.now - @start - template = "--- %s: %s (%.5fs)\n%s" + template = "--- %s: %s (%.2fs)\n%s" if failed? printf template, "FAIL", @name, duration, @output elsif Rgot.verbose? if skipped? printf template, "SKIP", @name, duration, @output @@ -32,10 +32,10 @@ end end def call test_method = @module.instance_method(@name).bind(@module) - if test_method.arity != 1 + if test_method.arity == 0 path, line = test_method.source_location warn "#{path}:#{line} `#{test_method.name}' is not running. It's a testing method name, But not have argument" else test_method.call(self) end