@@ -20,7 +20,7 @@ class Events::DayTimeline::ColumnsControllerTest < ActionDispatch::IntegrationTe
|
||||
test "show closed column" do
|
||||
get events_day_timeline_column_path("closed")
|
||||
assert_response :success
|
||||
assert_select "h1", text: /Closed/
|
||||
assert_select "h1", text: /Done/
|
||||
end
|
||||
|
||||
test "show returns not found for invalid column" do
|
||||
|
||||
@@ -5,6 +5,13 @@ class Users::AvatarsControllerTest < ActionDispatch::IntegrationTest
|
||||
sign_in_as :david
|
||||
end
|
||||
|
||||
test "show system user" do
|
||||
get user_avatar_path(users(:system))
|
||||
|
||||
assert_response :redirect
|
||||
assert_redirected_to ActionController::Base.helpers.image_path("system_user.png")
|
||||
end
|
||||
|
||||
test "show own initials without caching" do
|
||||
get user_avatar_path(users(:david))
|
||||
assert_match "image/svg+xml", @response.content_type
|
||||
|
||||
Reference in New Issue
Block a user