summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Worrall <Daniel.Worrall@hotmail.co.uk>2019-05-23 23:07:08 +0100
committerDaniel Worrall <Daniel.Worrall@hotmail.co.uk>2019-05-23 23:07:08 +0100
commitbcb672d24cf67ac41ab67be0c65cf6908cef0984 (patch)
tree5af6d52800e18e0dccb527c99fe35f9a7ba13896
parentffe9604fc9f9e54ffa14c99ab45b6f8e4457f6f9 (diff)
downloadtwitch-bcb672d24cf67ac41ab67be0c65cf6908cef0984.tar.gz
twitch-bcb672d24cf67ac41ab67be0c65cf6908cef0984.zip
crystal format
-rw-r--r--spec/rate_limiter_spec.cr40
1 files changed, 20 insertions, 20 deletions
diff --git a/spec/rate_limiter_spec.cr b/spec/rate_limiter_spec.cr
index 345aa1a..31be8a1 100644
--- a/spec/rate_limiter_spec.cr
+++ b/spec/rate_limiter_spec.cr
@@ -1,20 +1,20 @@
-require "./spec_helper"
-
-describe RateLimiter do
- describe "#rate_limited?" do
- it "does the thing" do
- limiter = RateLimiter(String).new
- limiter.bucket(:foo, 5_u32, 1.seconds)
- limiter.rate_limited?(:foo, "z64")
- sleep 0.9
- 3.times do
- limiter.rate_limited?(:foo, "z64")
- end
- sleep 0.2
- 3.times do
- limiter.rate_limited?(:foo, "z64")
- end
- limiter.rate_limited?(:foo, "z64").should be_truthy
- end
- end
-end \ No newline at end of file
+require "./spec_helper"
+
+describe RateLimiter do
+ describe "#rate_limited?" do
+ it "does the thing" do
+ limiter = RateLimiter(String).new
+ limiter.bucket(:foo, 5_u32, 1.seconds)
+ limiter.rate_limited?(:foo, "z64")
+ sleep 0.9
+ 3.times do
+ limiter.rate_limited?(:foo, "z64")
+ end
+ sleep 0.2
+ 3.times do
+ limiter.rate_limited?(:foo, "z64")
+ end
+ limiter.rate_limited?(:foo, "z64").should be_truthy
+ end
+ end
+end