Non-leak acceptance test should only care about presence, not exact value

This commit is contained in:
Gonzalo Rodriguez 2018-06-19 14:00:20 -03:00
parent 4cc8d7d854
commit 7438e5122e
No known key found for this signature in database
GPG key ID: 5DB8B81B049B8AB1
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ describe "MemCacheStore as a cache backend" do
get "/", {}, "REMOTE_ADDR" => "1.2.3.4"
end
assert_equal "1", Rack::Attack.cache.store.get(key)
assert Rack::Attack.cache.store.get(key)
sleep 2.1

View file

@ -31,7 +31,7 @@ if ActiveSupport.version >= Gem::Version.new("5.2.0")
get "/", {}, "REMOTE_ADDR" => "1.2.3.4"
end
assert_equal "1", Rack::Attack.cache.store.fetch(key)
assert Rack::Attack.cache.store.fetch(key)
sleep 2.1