       make_files(templates_dir)
       templates_dir |> Path.join("base.html.eex") |> File.rm!()
 
+      assert {:error, _} = load(tmp_dir)
+    end
+
+    test "fails when the templates directory does not exist", %{tmp_dir: tmp_dir} do
       assert {:error, _} = load(tmp_dir)
     end
 

      make_files(templates_dir)

      assert {:ok, files} = load(tmp_dir)
      assert 4 === length(files)
    end

    test "loads template files with a theme", %{tmp_dir: tmp_dir} do

      {:ok, agent} = Agent.start_link(fn -> theme_dir end, name: Serum.TestAgent)

      assert {:ok, files} = load(tmp_dir)
      assert 8 === length(files)

      :ok = Agent.stop(agent)

