Skip to content

Commit

Permalink
tests(dao) add boolean filter test case
Browse files Browse the repository at this point in the history
  • Loading branch information
gszr committed Apr 2, 2018
1 parent a1eb3ce commit e66136a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/02-integration/03-dao/03-crud_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,14 @@ helpers.for_each_dao(function(kong_config)
assert.equal(1, #rows)
assert.same(first_api, rows[1])
end)
it("support a boolean filter", function()
local rows, err, _ = apis:find_page {
name = "fixture_2",
https_only = "false"
}
assert.falsy(err)
assert.is_table(rows)
end)
describe("errors", function()
it("handle invalid arg", function()
assert.has_error(function()
Expand Down

0 comments on commit e66136a

Please sign in to comment.