Turn on the Public link to share this collection with anyone in the world. They won’t need to log in and they won’t be able to see anything else in Fizzy.
+<%= turbo_frame_tag @collection, :publication do %>
+
+ Public link
+
Turn on the Public link to share this collection with anyone in the world. They won’t need to log in and they won’t be able to see anything else in Fizzy.
+<% end %>
diff --git a/test/controllers/collections/publications_controller_test.rb b/test/controllers/collections/publications_controller_test.rb
index 2bd9ec1dc..da24c22da 100644
--- a/test/controllers/collections/publications_controller_test.rb
+++ b/test/controllers/collections/publications_controller_test.rb
@@ -13,7 +13,7 @@ class Collections::PublicationsControllerTest < ActionDispatch::IntegrationTest
post collection_publication_path(@collection)
end
- assert_redirected_to edit_collection_path(@collection)
+ assert_turbo_stream action: :replace, target: dom_id(@collection, :publication)
end
test "unpublish a collection" do
@@ -24,6 +24,6 @@ class Collections::PublicationsControllerTest < ActionDispatch::IntegrationTest
delete collection_publication_path(@collection)
end
- assert_redirected_to edit_collection_path(@collection)
+ assert_turbo_stream action: :replace, target: dom_id(@collection, :publication)
end
end