Skip to content

Commit

Permalink
chore: add basic tests for install task
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Sep 16, 2024
1 parent d472f62 commit 2101ab3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/mix/tasks/ash_postgres.install_test.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
defmodule Mix.Tasks.AshPostgres.InstallTest do
use ExUnit.Case

import Igniter.Test

# This is a simple test to ensure that the installation doesnt have
# any errors. We should add better tests here, though.
test "installation does not fail" do
test_project()
|> Igniter.compose_task("ash_postgres.install")
|> assert_creates("lib/test/repo.ex")
end
end

0 comments on commit 2101ab3

Please sign in to comment.