spec/lib/fozzie/interface_spec.rb in fozzie-0.0.24 vs spec/lib/fozzie/interface_spec.rb in fozzie-0.0.25

- old
+ new

@@ -41,23 +41,23 @@ subject.time_for('data.bin') { sleep 0.01 } subject.time_to_do('data.bin') { sleep 0.01 } end it "registers a commit" do - subject.expects(:timing).with(['event', 'commit', nil], anything).twice + subject.expects(:gauge).with(['event', 'commit', nil], anything).twice subject.commit subject.committed end it "registers a build" do - subject.expects(:timing).with(['event', 'build', nil], anything).twice + subject.expects(:gauge).with(['event', 'build', nil], anything).twice subject.build subject.built end it "registers a deploy" do - subject.expects(:timing).with(['event', 'deploy', nil], anything).twice + subject.expects(:gauge).with(['event', 'deploy', nil], anything).twice subject.deploy subject.deployed end it "ensures block is called on socket error" do @@ -157,6 +157,13 @@ end end -end \ No newline at end of file + describe "#gauge" do + it "registers a gauge measurement" do + subject.expects(:send).with("mystat", 99, "g", 1) + subject.gauge("mystat", 99) + end + end + +end