Add more controller tests
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user