lib/knapsack_pro/tracker.rb in knapsack_pro-0.38.0 vs lib/knapsack_pro/tracker.rb in knapsack_pro-0.39.0
- old
+ new
@@ -56,9 +56,13 @@
@test_files_with_time[current_test_path] ||= 0
@test_files_with_time[current_test_path] += @execution_time
end
def now_without_mock_time
- Time.now_without_mock_time
+ if defined?(Timecop)
+ Time.now_without_mock_time
+ else
+ Time.raw_now
+ end
end
end
end