spec/lib/fozzie_spec.rb in fozzie-0.0.10 vs spec/lib/fozzie_spec.rb in fozzie-0.0.11
- old
+ new
@@ -144,9 +144,14 @@
res = Stats.time_to_do "event.run" do
Stats.increment_on('event.increment', a.save)
end
res.should == false
end
+
+ it "allows passing of arrays for stat key" do
+ Stats.expects(:timing).with('event.commit', any_parameters)
+ Stats.time_to_do %w{event commit} do; end
+ end
end
end
\ No newline at end of file