lib/rgot/t.rb in rgot-0.0.1 vs lib/rgot/t.rb in rgot-0.0.2

- old
+ new

@@ -3,16 +3,16 @@ def initialize(test_module, name, opts={}) super() @module = test_module @name = name @opts = opts + @module.extend @module end def run begin - @module.extend @module - @module.instance_method(@name).bind(@module).call(self) + call finished! rescue => e fail! report raise e @@ -29,8 +29,12 @@ printf template, "SKIP", @name, duration, @output else printf template, "PASS", @name, duration, @output end end + end + + def call + @module.instance_method(@name).bind(@module).call(self) end end end