-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
:protocol missing #10
Comments
I found this when playing around with ring-spec - which is great btw. Is ring-mock deprecated now or does it just need a fix? Happy to send a PR. |
Also, :query-string is generated as nil, which fails the spec. (s/explain-str :ring/request (assoc (request :get "/") :protocol "HTTP/1.1"))
=>
In: [:query-string] val: nil fails spec: :ring.request/query-string at: [:query-string] predicate: :clojure.spec/unknown |
Needs a fix, I think! Ring-Mock is still useful for creating non-generative request maps. The |
I don't know how you feel about the ring-mock project now, given that equivalent functionality could eventually form part of the ring-spec project (via generators). Personally, I like ring-mock and think it's worth keeping up-to-date. Feel free to delegate to me if you like, but I think the fixes are fairly trivial. |
As far as I know, generators aren't designed for creating specific data structures, so Ring-Mock is still useful for creating non-generative request maps. |
This should be fixed now that #12 has been merged. |
Mock request does not generate :protocol as per Ring SPEC
and fails to conform to the following spec:
from ring-spec
The text was updated successfully, but these errors were encountered: