lib/knapsack_pro/presenter.rb in knapsack_pro-5.7.0 vs lib/knapsack_pro/presenter.rb in knapsack_pro-6.0.0

- old
+ new

@@ -1,11 +1,12 @@ # frozen_string_literal: true module KnapsackPro class Presenter class << self - def global_time - global_time = pretty_seconds(KnapsackPro.tracker.global_time) + def global_time(time = nil) + time = KnapsackPro.tracker.global_time if time.nil? + global_time = pretty_seconds(time) "Global time execution for tests: #{global_time}" end def pretty_seconds(seconds) sign = ''