From 0ceb2763a4c36cda174f4634e6f09f3314565108 Mon Sep 17 00:00:00 2001 From: Stefan Wille Date: Thu, 20 Feb 2020 12:24:28 -0300 Subject: [PATCH] Add regression test for #100 --- spec/redis_spec.cr | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/redis_spec.cr b/spec/redis_spec.cr index 99ae767..a56ba9a 100644 --- a/spec/redis_spec.cr +++ b/spec/redis_spec.cr @@ -1521,5 +1521,13 @@ describe Redis do other.get("foo").should eq(nil) end end + + describe "regression on #keys: compile time error" do + # https://github.com/stefanwille/crystal-redis/issues/100 + it "works" do + redis = Redis.new + redis.keys("*").each { |key| redis.del(key.as String) } + end + end end end