Skip to content

Commit

Permalink
Ensure project uses Marten 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ellmetha committed Jul 13, 2024
1 parent bb93c27 commit ed4c61e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion shard.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ shards:

marten:
git: https://github.com/martenframework/marten.git
version: 0.4.5
version: 0.5.0

marten_auth:
git: https://github.com/martenframework/marten-auth.git
Expand Down
6 changes: 3 additions & 3 deletions spec/apps/auth/handlers/sign_in_handler_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe Auth::SignInHandler do
url = Marten.routes.reverse("auth:sign_in")
response = Marten::Spec.client.post(url, data: {"email": "", "password": ""})

response.status.should eq 200
response.status.should eq 422
response.content.includes?("Sign in").should be_true
end

Expand All @@ -38,7 +38,7 @@ describe Auth::SignInHandler do
url = Marten.routes.reverse("auth:sign_in")
response = Marten::Spec.client.post(url, data: {"email": user.email, "password": "bad"})

response.status.should eq 200
response.status.should eq 422
response.content.includes?("Sign in").should be_true
response.content.includes?(
"Please enter a correct email address and password. Note that both fields may be case-sensitive."
Expand All @@ -51,7 +51,7 @@ describe Auth::SignInHandler do
url = Marten.routes.reverse("auth:sign_in")
response = Marten::Spec.client.post(url, data: {"email": user.email, "password": "bad"})

response.status.should eq 200
response.status.should eq 422
response.content.includes?("Sign in").should be_true
response.content.includes?(
"Please enter a correct email address and password. Note that both fields may be case-sensitive."
Expand Down
2 changes: 1 addition & 1 deletion spec/apps/auth/handlers/sign_up_handler_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe Auth::SignUpHandler do
url = Marten.routes.reverse("auth:sign_up")
response = Marten::Spec.client.post(url, data: {"username": "", "email": "", "password": ""})

response.status.should eq 200
response.status.should eq 422
response.content.includes?("Sign up").should be_true
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe Profiles::SettingsUpdateHandler do
url = Marten.routes.reverse("profiles:settings_update")
response = Marten::Spec.client.post(url, data: {"email" => ""})

response.status.should eq 200
response.status.should eq 422
response.content.includes?("Your Settings").should be_true
end

Expand Down

0 comments on commit ed4c61e

Please sign in to comment.