     [
       component_types: types,
       slot_type: slot_type,
-      mobo_type: mobo_type,
       spec: spec]
   end
 
-  setup %{mobo_type: mobo_type, spec: spec} do
-    {:ok, mobo} = create_motherboard(mobo_type, spec.spec_id)
+  setup %{spec: spec} do
+    {:ok, mobo} = create_motherboard(spec.spec_id)
     slot =
       mobo.motherboard_id
       |> MotherboardController.get_slots()

    end

    test "failure when component is already used", context do
      %{slot: slot0, spec: spec, mobo_type: mobo_type} = context
      {:ok, mobo} = create_motherboard(mobo_type, spec.spec_id)

      slot1 =
        mobo.motherboard_id
        |> MotherboardController.get_slots()
        |> List.first()

       component = component_for(slot0)
       MotherboardSlotController.link(slot0.slot_id, component.component_id)

    {:ok, slot: slot, mobo: mobo}
  end

  defp create_motherboard(spec_id) do
    comp_params = %{
      component_type: "mobo",
      spec_id: spec_id}
    {:ok, comp} = ComponentController.create(comp_params)

