Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Found via `codespell -S deps -H -L statics`
  • Loading branch information
kianmeng authored and jarlah committed Jan 14, 2024
1 parent f38cb00 commit 2e4a13e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ container(:redis, Testcontainers.RedisContainer.new())

### In a Phoenix project:

To start a postgres container when running tests, that also enables testing of application initialization with databasse calls at startup, add this in application.ex:
To start a postgres container when running tests, that also enables testing of application initialization with database calls at startup, add this in application.ex:

```elixir
# in config/dev.exs:
Expand Down Expand Up @@ -139,7 +139,7 @@ To start a postgres container when running tests, that also enables testing of a

This will start a postgres container that will be terminated when the test process ends.

The database config in config/test.exs will be temporaly updated in-memory with the random host port on the container, and other properties like username, password and database. In most cases these will default to "test" unless overridden.
The database config in config/test.exs will be temporarily updated in-memory with the random host port on the container, and other properties like username, password and database. In most cases these will default to "test" unless overridden.

See documentation on [Testcontainers.Ecto](https://hexdocs.pm/testcontainers/Testcontainers.Ecto.html) for more information about the options it can take.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defmodule Testcontainers.Connection.DockerHostStrategy.DockerHostFromPropertiesT
DockerHostStrategyEvaluator.run_strategies([strategy], [])
end

test "should return file not found if property file doesnt exist" do
test "should return file not found if property file doesn't exist" do
properties_path = "/some/nonexistent/place/.testcontainers.properties"

strategy = %DockerHostFromPropertiesStrategy{
Expand Down
2 changes: 1 addition & 1 deletion test/ecto_mysql_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ defmodule Testcontainers.EctoMysqlTest do
Testcontainers.stop_container(container.container_id)
end

test "fails properly when migrations doesnt pass successfully" do
test "fails properly when migrations doesn't pass successfully" do
assert {:error,
%MyXQL.Error{
message:
Expand Down
2 changes: 1 addition & 1 deletion test/ecto_postgres_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ defmodule Testcontainers.EctoPostgresTest do
Testcontainers.stop_container(container.container_id)
end

test "fails properly when migrations doesnt pass successfully" do
test "fails properly when migrations doesn't pass successfully" do
assert {:error, %Postgrex.Error{postgres: %{message: "type \"stringa\" does not exist"}}} =
postgres_container(
app: :testcontainers,
Expand Down

0 comments on commit 2e4a13e

Please sign in to comment.