Skip to content

Commit

Permalink
Fix ameba findings
Browse files Browse the repository at this point in the history
  • Loading branch information
treagod committed Mar 20, 2024
1 parent 7982391 commit b58bd97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/marten-turbo/handlers/record_delete_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ describe MartenTurbo::Handlers::RecordCreate do

it "deletes the record and returns a delete turbo stream when a turbo request was made and a template is given" do
tag_1 = Tag.create!(name: "Tag 1")
tag_2 = Tag.create!(name: "Tag 2")

params = Marten::Routing::MatchParameters{"pk" => tag_1.pk!}
request = Marten::HTTP::Request.new(
Expand All @@ -94,7 +93,8 @@ describe MartenTurbo::Handlers::RecordCreate do
response = handler.post

response.should_not be_a Marten::HTTP::Response::Found
response.content.strip.should contain "<turbo-stream action=\"remove\" target=\"tag_#{tag_1.pk!}\"></turbo-stream>"
response.content.strip.should contain "<turbo-stream action=\"remove\" " \
"target=\"tag_#{tag_1.pk!}\"></turbo-stream>"
end
end
end
Expand Down

0 comments on commit b58bd97

Please sign in to comment.