test/sucker_test.rb in mouth-0.8.0 vs test/sucker_test.rb in mouth-0.8.1

- old
+ new

@@ -37,9 +37,22 @@ r.store!("happening:3|c|@2.0") assert_equal ({"default.happening" => 3}), r.counters.values.first end + def test_storing_invalid + r = Mouth::Sucker.new + + r.store!("stuff") + r.store!("stuff:3") + r.store!("stuff|c") + r.store!("") + r.store!("3|c") + r.store!("stuff:3|p") + + assert_equal nil, r.counters.values.first + end + def test_storing_timer r = Mouth::Sucker.new r.store!("happening:3.7|ms") assert_equal ({"default.happening" => [3.7]}), r.timers.values.first \ No newline at end of file