diff --git a/test/controllers/checklists_controller_test.rb b/test/controllers/checklists_controller_test.rb index d9cc3607ec..5f6ec6e7c5 100644 --- a/test/controllers/checklists_controller_test.rb +++ b/test/controllers/checklists_controller_test.rb @@ -64,10 +64,6 @@ def test_checklist_for_project_location location: location } }).distinct get(:show, params: { project_id: project.id, location_id: location.id }) - title = :checklist_for_project_location_title.t( - project: project.title, - location: location.display_name - ) assert_match(/\(1\)/, @response.body) assert_match("location%3A#{location.id}", @response.body) diff --git a/test/controllers/projects_controller_test.rb b/test/controllers/projects_controller_test.rb index 0e2c236be1..d1333bf70a 100644 --- a/test/controllers/projects_controller_test.rb +++ b/test/controllers/projects_controller_test.rb @@ -138,11 +138,9 @@ def test_show_project_with_constraint_violations login(user.login) get(:show, params: { id: project.id }) - assert_select( - "#project_summary a[href = - '#{project_violations_path(project_id: project.id)}']", - true, "Page is missing a link to violations" - ) + assert_match(project_violations_path(project_id: project.id), + @response.body, + "Page is missing a link to violations") end def test_index