   test "teacher can see offered course", %{conn: conn} do
     offered_course = insert(:offered_course)
     conn = get conn, offered_course_path(conn, :show, offered_course)
-    assert html_response(conn, 200) =~ "Show offered course"
+    assert html_response(conn, 200) =~ "#{offered_course.course.name} - #{offered_course.term.name}"
   end
 
   @tag user_role: :teacher

  test "student can see offered course", %{conn: conn} do
    offered_course = insert(:offered_course)
    conn = get conn, offered_course_path(conn, :show, offered_course)
    assert html_response(conn, 200) =~ "Show offered course"
  end

  @tag user_role: :student

  test "shows chosen resource", %{conn: conn} do
    offered_course = insert(:offered_course)
    conn = get conn, offered_course_path(conn, :show, offered_course)
    assert html_response(conn, 200) =~ "#{offered_course.course.name} - #{offered_course.term.name}"
  end

  @tag user_role: :coordinator
