 defmodule ExMachinaTest do
   use ExUnit.Case
+
+  defmodule FooBar do
+    defstruct [:name]
+  end
 
   defmodule Factory do
     use ExMachina


    test "build/2 raises if passing invalid keys to a struct factory" do
      assert_raise KeyError, fn ->
        Factory.build(:struct, doesnt_exist: true)
      end
    end


      }
    end

    def foo_bar_factory do
      %FooBar{}
    end

    def comment_factory(attrs) do
