Merge branch 'main' into sqlite
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
require "test_helper"
|
||||
|
||||
class Events::DayTimeline::ColumnsControllerTest < ActionDispatch::IntegrationTest
|
||||
setup do
|
||||
sign_in_as :kevin
|
||||
end
|
||||
|
||||
test "show added column" do
|
||||
get events_day_timeline_column_path("added")
|
||||
assert_response :success
|
||||
assert_select "h1", text: /Added/
|
||||
end
|
||||
|
||||
test "show updated column" do
|
||||
get events_day_timeline_column_path("updated")
|
||||
assert_response :success
|
||||
assert_select "h1", text: /Updated/
|
||||
end
|
||||
|
||||
test "show closed column" do
|
||||
get events_day_timeline_column_path("closed")
|
||||
assert_response :success
|
||||
assert_select "h1", text: /Closed/
|
||||
end
|
||||
|
||||
test "show returns not found for invalid column" do
|
||||
get events_day_timeline_column_path("invalid")
|
||||
assert_response :not_found
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user