 
     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


  test "join workshop if there are vacancies", %{w1: w1} do
    u1 = create_user()
<<<<<<< HEAD
    assert w1.participants_counter == 0

=======
>>>>>>> Big changes
    {:ok, attendance} = Workshops.join(u1, w1.slug)

    assert attendance.workshop_id == w1.id
    assert attendance.user_id == u1.id
<<<<<<< HEAD

    w2 = Workshops.get(w1.slug)
    assert w2.participants_counter == 1
=======
>>>>>>> Big changes
  end

  test "join workshop if there are no vacancies", %{w1: w1} do

    u1 = create_user()
    create_workshop_attendance(w1, u1)

    w2 = Workshops.get(w1.slug)

    assert w2.participants_counter == 1
