Fix using macro for entry module
This commit is contained in:
parent
c56c21880d
commit
85d6b8586f
2 changed files with 2 additions and 3 deletions
|
@ -3,9 +3,8 @@ defmodule Dsl do
|
||||||
Documentation for Dsl.
|
Documentation for Dsl.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __using__(_) do
|
defmacro __using__(_) do
|
||||||
quote do
|
quote do
|
||||||
import Kernel, except: [div: 2]
|
|
||||||
import Dsl.Html
|
import Dsl.Html
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
defmodule Dsl.HtmlTest do
|
defmodule Dsl.HtmlTest do
|
||||||
use ExUnit.Case, async: true
|
use ExUnit.Case, async: true
|
||||||
import Dsl.Html
|
use Dsl
|
||||||
|
|
||||||
describe "non-void elements" do
|
describe "non-void elements" do
|
||||||
test "renders two divs" do
|
test "renders two divs" do
|
||||||
|
|
Reference in a new issue