     offered_course = create_attendance([student])
 
     conn = get user_conn, attendance_path(user_conn, :show, offered_course.id)
-    assert html_response(conn, 200) =~ "Show attendance for"
+    assert html_response(conn, 200) =~ ~r/Attendances for\s+#{offered_course.course.name}\s+in\s+#{offered_course.term.name}/
   end
 
   test "does not show chosen resource by user volunteer", %{conn: _conn} do

    offered_course = create_attendance_with_teacher(students, [teachers])

    conn = get user_conn, attendance_path(user_conn, :show, offered_course.id)
    assert html_response(conn, 200) =~ "Show attendance for"
  end

  test "shows chosen resource by user student", %{conn: _conn} do

    offered_course = create_attendance(students)

    conn = get user_conn, attendance_path(user_conn, :show, offered_course.id)
    assert html_response(conn, 200) =~ ~r/Attendances for\s+#{offered_course.course.name}\s+in\s+#{offered_course.term.name}/
  end

  test "shows chosen resource by user teacher", %{conn: _conn} do
