-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
Fix failed specs in Crystal v1.13 #1909
Conversation
``` Failures: 1) Lucky::CookieJar raises a nicer error for invalid cookie values Failure/Error: expect_raises(Lucky::InvalidCookieValueError, "Cookie value for 'cookie' is invalid") do Expected Lucky::InvalidCookieValueError but nothing was raised Error: # spec/lucky/cookies/cookie_jar_spec.cr:41 ``` Crystal v1.13 accepts space in cookie values as valid. See <crystal-lang/crystal#14455>.
There's also crystal-loot/exception_page#49, which breaks Lucky when using |
Is this the right code? It looks like #1908 ? 🤔 |
oohh... I see where the change was made. Ok. Yeah, looks like the other one snuck in here 😂 |
@@ -35,7 +35,7 @@ describe Lucky::CookieJar do | |||
end | |||
|
|||
it "raises a nicer error for invalid cookie values" do | |||
value = "Double Chocolate" | |||
value = "Double,Chocolate" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Oops, sorry! I forgot to checkout |
I can close this and send a new PR if that is preferred? |
It's ok. I was going to merge the other anyway, so we'll just lump them together :D |
Purpose
Fix failed
Lucky::CookieJar
specs in Crystal v1.13Description
Lucky::CookieJar
specs fail in Crystal v1.13. This is related to crystal-lang/crystal#14455. This PR fixes that.See https://github.com/luckyframework/lucky/actions/runs/10340714956/job/28621689266.
Checklist
crystal tool format spec src
./script/setup
./script/test