From 85d6b8586f8b46cc54a17a7d0c85dfac12230cf9 Mon Sep 17 00:00:00 2001 From: Mitchell Hanberg Date: Sun, 14 Apr 2019 22:35:42 -0400 Subject: [PATCH] Fix using macro for entry module --- lib/dsl.ex | 3 +-- test/dsl/html_test.exs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/dsl.ex b/lib/dsl.ex index cd40170..6de5fde 100644 --- a/lib/dsl.ex +++ b/lib/dsl.ex @@ -3,9 +3,8 @@ defmodule Dsl do Documentation for Dsl. """ - def __using__(_) do + defmacro __using__(_) do quote do - import Kernel, except: [div: 2] import Dsl.Html end end diff --git a/test/dsl/html_test.exs b/test/dsl/html_test.exs index 00d69cd..f3b2e18 100644 --- a/test/dsl/html_test.exs +++ b/test/dsl/html_test.exs @@ -1,6 +1,6 @@ defmodule Dsl.HtmlTest do use ExUnit.Case, async: true - import Dsl.Html + use Dsl describe "non-void elements" do test "renders two divs" do