Skip to content

Commit 0a5a685

Browse files
committed
Quoted atoms in strings
1 parent f8798ac commit 0a5a685

10 files changed

+13
-13
lines changed

test/extensions/persistent_session/plug/cookie_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ defmodule PowPersistentSession.Plug.CookieTest do
5757
assert PersistentSessionCache.get([backend: ets], new_id) == 1
5858
end
5959

60-
test "call/2 assigns user from cookie with prepended :otp_app", %{config: config, ets: ets} do
60+
test "call/2 assigns user from cookie with prepended `:otp_app`", %{config: config, ets: ets} do
6161
user = %User{id: 1}
6262
id = "test_app_test"
6363
config = Pow.Config.merge(config, [otp_app: :test_app])

test/mix/tasks/ecto/pow.ecto.gen.schema_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ defmodule Mix.Tasks.Pow.Ecto.Gen.SchemaTest do
2424
end)
2525
end
2626

27-
test "generates with :context_app" do
27+
test "generates with `:context_app`" do
2828
options = ~w(--context-app pow)
2929
File.cd!(@tmp_path, fn ->
3030
Schema.run(options)
@@ -33,7 +33,7 @@ defmodule Mix.Tasks.Pow.Ecto.Gen.SchemaTest do
3333
end)
3434
end
3535

36-
test "generates with :binary_id" do
36+
test "generates with `:binary_id`" do
3737
options = ~w(--binary-id)
3838

3939
File.cd!(@tmp_path, fn ->

test/mix/tasks/extension/ecto/pow.extension.ecto.gen.migrations_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ defmodule Mix.Tasks.Pow.Extension.Ecto.Gen.MigrationsTest do
5656
end)
5757
end
5858

59-
test "generates with :binary_id" do
59+
test "generates with `:binary_id`" do
6060
options = @options ++ ~w(--binary-id)
6161

6262
File.cd!(@tmp_path, fn ->
@@ -70,7 +70,7 @@ defmodule Mix.Tasks.Pow.Extension.Ecto.Gen.MigrationsTest do
7070
end)
7171
end
7272

73-
describe "with :otp_app configuration" do
73+
describe "with `:otp_app` configuration" do
7474
setup do
7575
Application.put_env(:pow, :pow, extensions: [__MODULE__])
7676
on_exit(fn ->

test/mix/tasks/extension/phoenix/pow.extension.phoenix.gen.templates_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ defmodule Mix.Tasks.Pow.Extension.Phoenix.Gen.TemplatesTest do
5757
end)
5858
end
5959

60-
describe "with :context_app configuration" do
60+
describe "with `:context_app` configuration" do
6161
setup do
6262
Application.put_env(:test, :pow, extensions: [PowResetPassword, PowEmailConfirmation])
6363
on_exit(fn ->

test/mix/tasks/extension/phoenix/pow.extension.phoenix.mailer.gen.templates_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ defmodule Mix.Tasks.Pow.Extension.Phoenix.Mailer.Gen.TemplatesTest do
6969
end)
7070
end
7171

72-
describe "with :context_app configuration" do
72+
describe "with `:context_app` configuration" do
7373
setup do
7474
Application.put_env(:test, :pow, extensions: [PowResetPassword, PowEmailConfirmation])
7575
on_exit(fn ->

test/mix/tasks/phoenix/pow.phoenix.gen.templates_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ defmodule Mix.Tasks.Pow.Phoenix.Gen.TemplatesTest do
5050
end)
5151
end
5252

53-
test "generates with :context_app" do
53+
test "generates with `:context_app`" do
5454
options = ~w(--context-app test)
5555

5656
File.cd!(@tmp_path, fn ->

test/mix/tasks/phoenix/pow.phoenix.install_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ defmodule Mix.Tasks.Pow.Phoenix.InstallTest do
6565
end)
6666
end
6767

68-
test "with :context_app" do
68+
test "with `:context_app`" do
6969
options = @options ++ ~w(--context-app test)
7070
File.cd!(@tmp_path, fn ->
7171
Install.run(options)

test/pow/phoenix/controllers/controller_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ defmodule Pow.Phoenix.ControllerTest do
55
alias Pow.Test.{Ecto.Users.User, Phoenix, Phoenix.Endpoint, Phoenix.Router}
66

77
describe "action/3" do
8-
test "using :web_module", %{conn: conn} do
8+
test "using `:web_module`", %{conn: conn} do
99
conn =
1010
conn
1111
|> Conn.put_private(:pow_config, web_module: Phoenix, user: User)

test/pow/phoenix/mailer/mail_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ defmodule Pow.Phoenix.Mailer.MailTest do
3535
assert mail.assigns[:value] == "test"
3636
end
3737

38-
test "new/4 with :web_module" do
38+
test "new/4 with `:web_module`" do
3939
conn = %{private: %{pow_config: [web_mailer_module: Pow.Test.Phoenix]}}
4040
assert mail = Mail.new(conn, :user, {MailerView, :mail_test}, value: "test")
4141

test/pow/phoenix/views/view_helpers_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ defmodule Pow.Phoenix.ViewHelpersTest do
3737
assert conn.private[:phoenix_layout] == {Pow.Test.Phoenix.LayoutView, :app}
3838
end
3939

40-
test "layout/1 with :web_module", %{conn: conn} do
40+
test "layout/1 with `:web_module`", %{conn: conn} do
4141
conn =
4242
conn
4343
|> Conn.put_private(:pow_config, web_module: Pow.Test.Phoenix)
@@ -59,7 +59,7 @@ defmodule Pow.Phoenix.ViewHelpersTest do
5959
assert conn.private[:phoenix_layout] == {Pow.Test.Phoenix.LayoutView, :app}
6060
end
6161

62-
test "layout/1 in extension with :web_module", %{conn: conn} do
62+
test "layout/1 in extension with `:web_module`", %{conn: conn} do
6363
conn =
6464
conn
6565
|> Conn.put_private(:phoenix_view, PowTest.Phoenix.TestView)

0 commit comments

Comments
 (0)