lib/busted.rb in busted-0.1.0 vs lib/busted.rb in busted-0.2.0
- old
+ new
@@ -5,9 +5,17 @@
def run(options = {}, &block)
Profiler.run options, &block
end
+ def start(options = {})
+ Profiler.run({ profiler: :sandwich, action: :start }.merge options)
+ end
+
+ def finish(options = {})
+ Profiler.run({ profiler: :sandwich, action: :finish }.merge options)
+ end
+
def method_cache_invalidations(&block)
run(&block)[:invalidations][:method]
end
def constant_cache_invalidations(&block)