mirror of
https://github.com/ash-project/igniter.git
synced 2024-09-20 05:22:52 +12:00
chore: small test fixes
This commit is contained in:
parent
fc48588bff
commit
3bbdece3fe
2 changed files with 3 additions and 3 deletions
|
@ -130,7 +130,7 @@ defmodule Igniter.Code.ModuleTest do
|
|||
""")
|
||||
|> Igniter.create_new_file("test.txt", "Foo")
|
||||
|
||||
assert {_igniter, [Foo]} =
|
||||
assert {_igniter, [Foo, Test, TestTest]} =
|
||||
Igniter.Code.Module.find_all_matching_modules(igniter, fn _module, _zipper ->
|
||||
true
|
||||
end)
|
||||
|
|
|
@ -59,14 +59,14 @@ defmodule Igniter.Extensions.PhoenixTest do
|
|||
end
|
||||
""")
|
||||
|> Igniter.create_new_file("lib/test_web/controllers/foo_json.ex", """
|
||||
defmodule TestWeb.FooJson do
|
||||
defmodule TestWeb.FooJSON do
|
||||
|
||||
def render(_), do: %{foo: "bar"}
|
||||
end
|
||||
""")
|
||||
|
||||
assert {:ok, "test_web/controllers/foo_json.ex"} =
|
||||
Igniter.Extensions.Phoenix.proper_location(igniter, TestWeb.FooJson, [])
|
||||
Igniter.Extensions.Phoenix.proper_location(igniter, TestWeb.FooJSON, [])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue