From b58bd9742cf3c341127f55929e62c3c93ca9269c Mon Sep 17 00:00:00 2001 From: Marvin Ahlgrimm Date: Wed, 20 Mar 2024 15:41:40 +0100 Subject: [PATCH] Fix ameba findings --- spec/marten-turbo/handlers/record_delete_spec.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/marten-turbo/handlers/record_delete_spec.cr b/spec/marten-turbo/handlers/record_delete_spec.cr index 6dec4a2..0f8c577 100644 --- a/spec/marten-turbo/handlers/record_delete_spec.cr +++ b/spec/marten-turbo/handlers/record_delete_spec.cr @@ -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( @@ -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 "" + response.content.strip.should contain "" end end end