correct spec on Ruby 2.3
This commit is contained in:
parent
b5a967ab43
commit
995bf3c84e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue