Skip to content

Commit

Permalink
Add regression test for #100
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Wille committed Feb 20, 2020
1 parent 90e656e commit 0ceb276
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/redis_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0ceb276

Please sign in to comment.