Skip to content

Commit

Permalink
updated doctest due to compatibility and added consolidate_protocols …
Browse files Browse the repository at this point in the history
…in test mode
  • Loading branch information
tofran committed Mar 21, 2023
1 parent ee00350 commit 7814194
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions lib/ecto_sessions/auth_token.ex
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,8 @@ defmodule EctoSessions.AuthToken do
iex> hash("sample", :sha3_256)
"f68f564e181663381ef67ae5849d3dd1d0f1044cf468d0a0b7875e4ff121906f"
iex> hash("sample", :blake2b)
"cc6c2d671173dd85a4ef30b0376d14980c20e54c69752fceb4abf6e583924309" <>
"e15981e6aa728e9127d5a422b1afdd5cbe1a5d0097f34186f78424d5f3588859"
iex> hash("sample", :nil)
"sample"
"""
@spec hash(binary, atom) :: any
Expand Down
3 changes: 2 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ defmodule EctoSessions.MixProject do
],
description:
"Helps you easily and securely manage database backed sessions (or API keys) in an ecto project.",
name: "Ecto Sessions"
name: "Ecto Sessions",
consolidate_protocols: Mix.env() != :test
]
end

Expand Down

0 comments on commit 7814194

Please sign in to comment.