correct spec on Ruby 2.3

This commit is contained in:
Sam 2017-12-05 07:04:41 +11:00
parent b5a967ab43
commit 995bf3c84e
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ describe RateLimiter do
begin begin
limiter.performed! limiter.performed!
rescue RateLimiter::LimitExceeded => e rescue RateLimiter::LimitExceeded => e
expect(e.available_in.class).to eq(Integer) expect(Integer === e.available_in).to eq(true)
expect(e.available_in).to be > 28 expect(e.available_in).to be > 28
expect(e.available_in).to be < 32 expect(e.available_in).to be < 32
thrown = true thrown = true