-
-
Save cch1/1755090 to your computer and use it in GitHub Desktop.
with metaconstants
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(facts "/locations/:id/rates should limit the rate response count by the :limit param" | |
(let [params [:check_in (gen-check-in) | |
:check_out (gen-check-out) | |
:guests 1 | |
:rooms 1 | |
:limit ...limit...]] | |
(apply location-rate-request (:tid location-one) params) => truthy | |
(provided | |
(apij.models.hotel-search/search | |
(contains {:params (contains {:limit apij.views.rates.common/max-hotels})})) | |
=> {:docs []} | |
(apij.models.rate/search | |
(as-checker sequential?) | |
(as-checker string?) | |
(as-checker string?) | |
(as-checker (contains {:per-page ...limit...})) | |
(as-checker map?) | |
(as-checker string?)) | |
=> {}))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment