Skip to content

Commit 8d3d1ab

Browse files
committed
update integration tests to use SQLite3 name
1 parent 17b79b1 commit 8d3d1ab

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

integration_test/exqlite/test_helper.exs renamed to integration_test/test_helper.exs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Code.require_file("#{ecto_sql}/integration_test/support/repo.exs", __DIR__)
1111
alias Ecto.Integration.TestRepo
1212

1313
Application.put_env(:ecto_sqlite3, TestRepo,
14-
adapter: Ecto.Adapters.Exqlite,
14+
adapter: Ecto.Adapters.SQLite3,
1515
database: "/tmp/exqlite_integration_test.db",
1616
journal_mode: :wal,
1717
cache_size: -64000,
@@ -25,7 +25,7 @@ Application.put_env(:ecto_sqlite3, TestRepo,
2525
alias Ecto.Integration.PoolRepo
2626

2727
Application.put_env(:ecto_sqlite3, PoolRepo,
28-
adapter: Ecto.Adapters.Exqlite,
28+
adapter: Ecto.Adapters.SQLite3,
2929
database: "/tmp/exqlite_integration_pool_test.db",
3030
journal_mode: :wal,
3131
cache_size: -64000,
@@ -39,7 +39,7 @@ Application.put_env(:ecto_sql, TestRepo, Application.get_env(:ecto_sqlite3, Test
3939
Application.put_env(:ecto_sql, PoolRepo, Application.get_env(:ecto_sqlite3, PoolRepo))
4040

4141
defmodule Ecto.Integration.PoolRepo do
42-
use Ecto.Integration.Repo, otp_app: :ecto_sqlite3, adapter: Ecto.Adapters.Exqlite
42+
use Ecto.Integration.Repo, otp_app: :ecto_sqlite3, adapter: Ecto.Adapters.SQLite3
4343
end
4444

4545
Code.require_file "#{ecto}/integration_test/support/schemas.exs", __DIR__
@@ -53,14 +53,14 @@ defmodule Ecto.Integration.Case do
5353
end
5454
end
5555

56-
{:ok, _} = Ecto.Adapters.Exqlite.ensure_all_started(TestRepo.config(), :temporary)
56+
{:ok, _} = Ecto.Adapters.SQLite3.ensure_all_started(TestRepo.config(), :temporary)
5757

5858
# Load up the repository, start it, and run migrations
59-
_ = Ecto.Adapters.Exqlite.storage_down(TestRepo.config())
60-
:ok = Ecto.Adapters.Exqlite.storage_up(TestRepo.config())
59+
_ = Ecto.Adapters.SQLite3.storage_down(TestRepo.config())
60+
:ok = Ecto.Adapters.SQLite3.storage_up(TestRepo.config())
6161

62-
_ = Ecto.Adapters.Exqlite.storage_down(PoolRepo.config())
63-
:ok = Ecto.Adapters.Exqlite.storage_up(PoolRepo.config())
62+
_ = Ecto.Adapters.SQLite3.storage_down(PoolRepo.config())
63+
:ok = Ecto.Adapters.SQLite3.storage_up(PoolRepo.config())
6464

6565
{:ok, _} = TestRepo.start_link()
6666
{:ok, _pid} = PoolRepo.start_link()

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,5 @@ defmodule EctoSQLite3.MixProject do
6969
defp elixirc_paths(_), do: ["lib"]
7070

7171
defp test_paths(nil), do: ["test"]
72-
defp test_paths(_any), do: ["integration_test/exqlite"]
72+
defp test_paths(_any), do: ["integration_test"]
7373
end

0 commit comments

Comments
 (0)