Add more controller tests

This commit is contained in:
Jorge Manrubia
2025-09-28 22:02:01 +02:00
parent 23895e53aa
commit f7f4aa6eaf
4 changed files with 49 additions and 0 deletions
@@ -0,0 +1,12 @@
require "test_helper"
class Public::Collections::Columns::ClosedsControllerTest < ActionDispatch::IntegrationTest
setup do
collections(:writebook).publish
end
test "show" do
get public_collection_columns_closed_path(collections(:writebook).publication.key)
assert_response :success
end
end
@@ -0,0 +1,12 @@
require "test_helper"
class Public::Collections::Columns::NotNowsControllerTest < ActionDispatch::IntegrationTest
setup do
collections(:writebook).publish
end
test "show" do
get public_collection_columns_not_now_path(collections(:writebook).publication.key)
assert_response :success
end
end
@@ -0,0 +1,12 @@
require "test_helper"
class Public::Collections::Columns::StreamsControllerTest < ActionDispatch::IntegrationTest
setup do
collections(:writebook).publish
end
test "show" do
get public_collection_columns_stream_path(collections(:writebook).publication.key)
assert_response :success
end
end
@@ -0,0 +1,13 @@
require "test_helper"
class Public::Collections::ColumnsControllerTest < ActionDispatch::IntegrationTest
setup do
collections(:writebook).publish
end
test "show" do
column = columns(:writebook_in_progress)
get public_collection_column_path(collections(:writebook).publication.key, column)
assert_response :success
end
end