 
     w3 = Workshops.get(w1.slug)
     assert w3.participants_counter == 0
-=======
-    assert Workshops.leave(u1, w1.slug) == :ok
->>>>>>> Big changes
   end
 
   test "leave workshop if not attending", %{w1: w1} do

    u1 = create_user()
    create_workshop_attendance(w1, u1)

<<<<<<< HEAD
    w2 = Workshops.get(w1.slug)

    assert w2.participants_counter == 1

  test "delete workshop", %{w1: w1} do
    {:ok, workshop} = Workshops.delete(w1.slug)

    refute Repo.get(Workshop, workshop.id)
  end

  test "toggle checkin", %{w1: w1} do
    u1 = create_user()
    create_workshop_attendance(w1, u1)

    {:ok, _} = Workshops.toggle_checkin(w1.slug, u1.id, true)

