Fix tests

This commit is contained in:
David Heinemeier Hansson
2025-11-02 20:25:11 +01:00
parent 39dc2b6ab9
commit e4cdc15b6a
2 changed files with 3 additions and 3 deletions
@@ -7,7 +7,7 @@ class Collections::EntropiesControllerTest < ActionDispatch::IntegrationTest
end
test "update" do
put collection_entropy_path(@collection), params: { collection: { auto_postpone_period: 1.day } }
put collection_entropy_path(@collection, format: :turbo_stream), params: { collection: { auto_postpone_period: 1.day } }
assert_equal 1.day, @collection.entropy.reload.auto_postpone_period
@@ -10,7 +10,7 @@ class Collections::PublicationsControllerTest < ActionDispatch::IntegrationTest
assert_not @collection.published?
assert_changes -> { @collection.reload.published? }, from: false, to: true do
post collection_publication_path(@collection)
post collection_publication_path(@collection, format: :turbo_stream)
end
assert_turbo_stream action: :replace, target: dom_id(@collection, :publication)
@@ -21,7 +21,7 @@ class Collections::PublicationsControllerTest < ActionDispatch::IntegrationTest
assert @collection.published?
assert_changes -> { @collection.reload.published? }, from: true, to: false do
delete collection_publication_path(@collection)
delete collection_publication_path(@collection, format: :turbo_streamn)
end
assert_turbo_stream action: :replace, target: dom_id(@collection, :publication)