Skip to content

Commit

Permalink
spec/policy/caching: remove test that no longer applies
Browse files Browse the repository at this point in the history
  • Loading branch information
davidor committed Mar 6, 2018
1 parent 26b7756 commit 7d4316d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions spec/policy/caching/caching_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,6 @@ describe('Caching policy', function()
ctx.cache_handler(cache, 'a_key', { status = 200 }, nil)
assert.is_nil(cache:get('a_key'))
end)

it('disables caching when invalid caching type is specified', function()
local config = { caching_type = 'invalid_caching_type' }
local caching_policy = require('apicast.policy.caching').new(config)
local ctx = {}
caching_policy:rewrite(ctx)

ctx.cache_handler(cache, 'a_key', { status = 200 }, nil)
assert.is_nil(cache:get('a_key'))
end)
end)

describe('.access', function()
Expand Down

0 comments on commit 7d4316d

Please sign in to comment.