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

    [
      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)
    slot =
      mobo.motherboard_id
      |> MotherboardController.get_slots()

    end

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

      slot1 =
        mobo.motherboard_id
        |> MotherboardController.get_slots()
        |> Enum.find(&(&1.link_component_type == slot0.link_component_type))

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