spec/system_metrics/store_spec.rb in system-metrics-0.2.1 vs spec/system_metrics/store_spec.rb in system-metrics-0.2.2
- old
+ new
@@ -9,10 +9,10 @@
parent = event(:start => Time.now - 10.seconds, :end => Time.now)
child = event(:start => Time.now - 9.seconds, :end => Time.now - 1.seconds)
grandchild = event(:start => Time.now - 8.seconds, :end => Time.now - 2.seconds)
store = SystemMetrics::Store.new
-
+
lambda {
store.save([grandchild, child, parent])
}.should change(SystemMetrics::Metric, :count).by(3)
metrics = SystemMetrics::Metric.all