Skip to content

Commit 580381f

Browse files
committed
rename test files to SQLite3
1 parent 8d3d1ab commit 580381f

File tree

12 files changed

+48
-48
lines changed

12 files changed

+48
-48
lines changed

test/ecto/adapters/exqlite/codec_test.exs renamed to test/ecto/adapters/sqlite3/codec_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
defmodule Ecto.Adapters.Exqlite.CodecTest do
1+
defmodule Ecto.Adapters.SQLite3.CodecTest do
22
use ExUnit.Case, async: true
33

4-
alias Ecto.Adapters.Exqlite.Codec
4+
alias Ecto.Adapters.SQLite3.Codec
55

66
describe ".bool_decode/1" do
77
test "0" do

test/ecto/adapters/exqlite/connection_test.exs renamed to test/ecto/adapters/sqlite3/connection_test.exs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
defmodule Ecto.Adapters.Exqlite.ConnectionTest do
1+
defmodule Ecto.Adapters.SQLite3.ConnectionTest do
22
use ExUnit.Case
33

4-
alias Ecto.Adapters.Exqlite.Connection
5-
alias Ecto.Adapters.Exqlite
4+
alias Ecto.Adapters.SQLite3.Connection
5+
alias Ecto.Adapters.SQLite3
66
# alias Ecto.Migration.Table
77

88
import Ecto.Query
@@ -47,12 +47,12 @@ defmodule Ecto.Adapters.Exqlite.ConnectionTest do
4747
field(:z, :integer)
4848
field(:meta, :map)
4949

50-
has_many(:comments, Ecto.Adapters.Exqlite.ConnectionTest.Schema2,
50+
has_many(:comments, Ecto.Adapters.SQLite3.ConnectionTest.Schema2,
5151
references: :x,
5252
foreign_key: :z
5353
)
5454

55-
has_one(:permalink, Ecto.Adapters.Exqlite.ConnectionTest.Schema3,
55+
has_one(:permalink, Ecto.Adapters.SQLite3.ConnectionTest.Schema3,
5656
references: :y,
5757
foreign_key: :id
5858
)
@@ -63,15 +63,15 @@ defmodule Ecto.Adapters.Exqlite.ConnectionTest do
6363
use Ecto.Schema
6464

6565
schema "schema2" do
66-
belongs_to(:post, Ecto.Adapters.Exqlite.ConnectionTest.Schema,
66+
belongs_to(:post, Ecto.Adapters.SQLite3.ConnectionTest.Schema,
6767
references: :x,
6868
foreign_key: :z
6969
)
7070
end
7171
end
7272

7373
defp plan(query, operation \\ :all) do
74-
{query, _params} = Ecto.Adapter.Queryable.plan_query(operation, Exqlite, query)
74+
{query, _params} = Ecto.Adapter.Queryable.plan_query(operation, SQLite3, query)
7575
query
7676
end
7777

test/ecto/adapters/exqlite/data_type_test.exs renamed to test/ecto/adapters/sqlite3/data_type_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
defmodule Ecto.Adapters.Exqlite.DataTypeTest do
1+
defmodule Ecto.Adapters.SQLite3.DataTypeTest do
22
use ExUnit.Case, async: true
33

4-
alias Ecto.Adapters.Exqlite.DataType
4+
alias Ecto.Adapters.SQLite3.DataType
55

66
describe ".column_type/2" do
77
test ":id is INTEGER" do

test/ecto/adapters/exqlite_test.exs renamed to test/ecto/adapters/sqlite3_test.exs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
defmodule Ecto.Adapters.ExqliteTest do
1+
defmodule Ecto.Adapters.SQLite3Test do
22
use ExUnit.Case
33

4-
alias Ecto.Adapters.Exqlite
4+
alias Ecto.Adapters.SQLite3
55

66
describe ".storage_up/1" do
77
test "create database" do
88
opts = [database: Temp.path!()]
99

10-
assert Exqlite.storage_up(opts) == :ok
10+
assert SQLite3.storage_up(opts) == :ok
1111
assert File.exists?(opts[:database])
1212

1313
File.rm(opts[:database])
@@ -16,9 +16,9 @@ defmodule Ecto.Adapters.ExqliteTest do
1616
test "does not fail on second call" do
1717
opts = [database: Temp.path!()]
1818

19-
assert Exqlite.storage_up(opts) == :ok
19+
assert SQLite3.storage_up(opts) == :ok
2020
assert File.exists?(opts[:database])
21-
assert Exqlite.storage_up(opts) == {:error, :already_up}
21+
assert SQLite3.storage_up(opts) == {:error, :already_up}
2222

2323
File.rm(opts[:database])
2424
end
@@ -31,10 +31,10 @@ defmodule Ecto.Adapters.ExqliteTest do
3131
Your config/*.exs file should have something like this in it:
3232
3333
config :my_app, MyApp.Repo,
34-
adapter: Ecto.Adapters.Exqlite,
34+
adapter: Ecto.Adapters.SQLite3,
3535
database: "/path/to/sqlite/database"
3636
""",
37-
fn -> Exqlite.storage_up(mumble: "no database here") == :ok end
37+
fn -> SQLite3.storage_up(mumble: "no database here") == :ok end
3838
)
3939
end
4040
end
@@ -43,10 +43,10 @@ defmodule Ecto.Adapters.ExqliteTest do
4343
test "storage down (twice)" do
4444
opts = [database: Temp.path!()]
4545

46-
assert Exqlite.storage_up(opts) == :ok
47-
assert Exqlite.storage_down(opts) == :ok
46+
assert SQLite3.storage_up(opts) == :ok
47+
assert SQLite3.storage_down(opts) == :ok
4848
refute File.exists?(opts[:database])
49-
assert Exqlite.storage_down(opts) == {:error, :already_down}
49+
assert SQLite3.storage_down(opts) == {:error, :already_down}
5050

5151
File.rm(opts[:database])
5252
end

test/ecto/integration/crud_test.exs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ defmodule Ecto.Integration.CrudTest do
22
use Ecto.Integration.Case
33

44
alias Ecto.Integration.TestRepo
5-
alias Exqlite.Integration.Account
6-
alias Exqlite.Integration.User
7-
alias Exqlite.Integration.AccountUser
8-
alias Exqlite.Integration.Product
5+
alias EctoSQLite3.Integration.Account
6+
alias EctoSQLite3.Integration.User
7+
alias EctoSQLite3.Integration.AccountUser
8+
alias EctoSQLite3.Integration.Product
99

1010
import Ecto.Query
1111

test/ecto/integration/math_test.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ defmodule Ecto.Integration.MathTest do
22
use Ecto.Integration.Case
33

44
alias Ecto.Integration.TestRepo
5-
alias Exqlite.Integration.Account
6-
alias Exqlite.Integration.Product
7-
alias Exqlite.Integration.Vec3f
5+
alias EctoSQLite3.Integration.Account
6+
alias EctoSQLite3.Integration.Product
7+
alias EctoSQLite3.Integration.Vec3f
88

99
import Ecto.Query
1010

test/ecto/integration/streaming_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ defmodule Ecto.Integration.StreamingTest do
22
use Ecto.Integration.Case
33

44
alias Ecto.Integration.TestRepo
5-
alias Exqlite.Integration.User
5+
alias EctoSQLite3.Integration.User
66

77
import Ecto.Query
88

test/ecto/integration/uuid_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ defmodule Ecto.Integration.UUIDTest do
22
use Ecto.Integration.Case
33

44
alias Ecto.Integration.TestRepo
5-
alias Exqlite.Integration.Product
5+
alias EctoSQLite3.Integration.Product
66

77
test "handles uuid serialization and deserialization" do
88
external_id = Ecto.UUID.generate()

test/support/migration.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
defmodule Exqlite.Integration.Migration do
1+
defmodule EctoSQLite3.Integration.Migration do
22
use Ecto.Migration
33

44
def change do

test/support/repo.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
defmodule Ecto.Integration.TestRepo do
2-
use Ecto.Repo, otp_app: :ecto_sqlite3, adapter: Ecto.Adapters.Exqlite
2+
use Ecto.Repo, otp_app: :ecto_sqlite3, adapter: Ecto.Adapters.SQLite3
33

44
def create_prefix(_) do
55
raise "SQLite3 does not support CREATE DATABASE"

0 commit comments

Comments
 (0)