From b8b6ad9cee3b72d8c922454f507530b74ba1d524 Mon Sep 17 00:00:00 2001 From: Matt Langlois Date: Mon, 5 Aug 2019 18:08:25 -0700 Subject: [PATCH] Increment multiple using the default value --- test/github/kv_test.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/github/kv_test.rb b/test/github/kv_test.rb index 7bcdc0c..f53d472 100644 --- a/test/github/kv_test.rb +++ b/test/github/kv_test.rb @@ -67,6 +67,13 @@ class GitHub::KVTest < Minitest::Test end def test_increment_multiple + @kv.increment("foo") + result = @kv.increment("foo") + + assert_equal 2, result + end + + def test_increment_multiple_different_values @kv.increment("foo") result = @kv.increment("foo", amount: 2) @@ -81,7 +88,6 @@ class GitHub::KVTest < Minitest::Test assert_equal 2, result end - # TODO: handle non-integer values properly def test_increment_non_integer @kv.set("foo", "bar")