Skip to content

Commit

Permalink
Try to use delete_all instead of destroy_all
Browse files Browse the repository at this point in the history
This may be a fix for the issue `Can't modify frozen hash` we get in the
pipeline during the unit tests.
  • Loading branch information
Splines committed May 1, 2024
1 parent a7e116c commit 58b28c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/requests/media_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def expect_all_results(response)
RSpec.describe("Media", type: :request) do
describe "#search_by" do
before do
Medium.destroy_all
Medium.delete_all

@medium1 = FactoryBot.create(:medium, :with_teachable, :with_editors, :released,
sort: "Nuesse", description: "Erstes Medium")
Expand Down

0 comments on commit 58b28c6

Please sign in to comment.