Support hits per route
Closed this issue · 0 comments
bernardolins commented
test_with_server "validates cache" do
route "/no/cache", FakeServer.HTTP.Response.ok
route "/cache", FakeServer.HTTP.Response.ok
assert FakeServer.hits("/no/cache") == 0
assert FakeServer.hits("/cache") == 0
HTTPoison.get! FakeServer.address <> "/no/cache"
assert FakeServer.hits("/no/cache") == 1
HTTPoison.get! FakeServer.address <> "/cache"
assert FakeServer.hits("/cache") == 0
end