diff --git a/test/controllers/collections/entropies_controller_test.rb b/test/controllers/collections/entropies_controller_test.rb index 118ba0b7c..1f24a0f3f 100644 --- a/test/controllers/collections/entropies_controller_test.rb +++ b/test/controllers/collections/entropies_controller_test.rb @@ -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 diff --git a/test/controllers/collections/publications_controller_test.rb b/test/controllers/collections/publications_controller_test.rb index da24c22da..159ccd5bc 100644 --- a/test/controllers/collections/publications_controller_test.rb +++ b/test/controllers/collections/publications_controller_test.rb @@ -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)