Skip to content

Commit

Permalink
Make sure that directory exists or can be created
Browse files Browse the repository at this point in the history
  • Loading branch information
danschultzer committed Sep 14, 2023
1 parent b227cfa commit 8cc3872
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/assent/strategies/oauth2_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ defmodule Assent.Strategy.OAuth2Test do
end

test "with `:private_key_jwt` auth method with private key as file", %{config: config, callback_params: params} do
File.mkdir("tmp/")
File.mkdir_p!("tmp/")
File.write!("tmp/private-key.pem", @private_key)

config =
Expand Down
2 changes: 1 addition & 1 deletion test/assent/strategies/oauth_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ defmodule Assent.Strategy.OAuthTest do
end

test "with `:private_key_path` config", %{config: config} do
File.mkdir("tmp/")
File.mkdir_p!("tmp/")
File.write!("tmp/private-key.pem", @private_key)

config =
Expand Down

0 comments on commit 8cc3872

Please sign in to comment.