Fix using macro for entry module

This commit is contained in:
Mitchell Hanberg 2019-04-14 22:35:42 -04:00
parent c56c21880d
commit 85d6b8586f
2 changed files with 2 additions and 3 deletions

View file

@ -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

View file

@ -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