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

- old
+ new

@@ -164,6 +164,17 @@ subject.expects(:send).with("mystat", 99, "g", 1) subject.gauge("mystat", 99) end end + describe "without prefix" do + + it "registers stats without app, etc" do + Fozzie.c.disable_prefix + subject.expects(:send_to_socket).with {|bin| bin.match(/^mystat/) } + + subject.gauge("mystat", 99) + end + + end + end