test/integration_test.rb in progressrus-0.1.3 vs test/integration_test.rb in progressrus-0.1.4
- old
+ new
@@ -68,6 +68,14 @@
ticks = Progressrus.scope(["walrus"]).values
assert_equal 0, ticks.first.count
assert_instance_of Time, ticks.first.failed_at
end
+
+ def test_unknown_count
+ progress = Progressrus.new(id: "omg", scope: ["walrus"], total: nil)
+ progress.tick
+
+ progress = Progressrus.find(["walrus"], "omg")
+ assert_nil progress.total
+ end
end