              start_time: Timex.shift(Timex.now(), days: 1),
              finish_time: Timex.shift(Timex.now(), days: 1),
              volunteers: [volunteer2, volunteer3])
-      next_task = SummaryHelper.get_next_task(%{id: volunteer1.id, role: volunteer1.role}, Timex.now())
+      next_task = SummaryHelper.get_next_task(volunteer1, Timex.now())
 
       assert next_task.id == task.id
     end


    test "has no task" do
      volunteers = insert_list(2, :volunteer)
      insert(:task, volunteers: volunteers)

      next_task = SummaryHelper.get_next_task(%{id: 1, role: "Coordinator"}, Timex.now())

      assert next_task == nil
    end


    test "has no task" do
      volunteers = insert_list(2, :volunteer)
      student = insert(:student)
      insert(:task, volunteers: volunteers)

      next_task = SummaryHelper.get_next_task(student, Timex.now())

      assert next_task == nil
    end
