Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
axelson committed Sep 25, 2023
1 parent c998ec6 commit c4bb53f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/mix_helper.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule ScenicNew.MixHelper do
import ExUnit.Assertions

def tmp_path do
Path.expand("../../tmp", __DIR__)
Path.expand("../tmp", __DIR__)
end

defp random_string(len) do
Expand Down
4 changes: 2 additions & 2 deletions test/scenic_new_example_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ defmodule Mix.Tasks.Scenic.NewExampleTest do
assert_file("#{@app_name}/mix.exs", fn file ->
assert file =~ "mod: {#{@module_name}, []}"

assert file =~ "{:scenic, \"~> 0.11.0-beta.0\"}"
assert file =~ "{:scenic_driver_local, \"~> 0.11.0-beta.0\"}"
assert file =~ "{:scenic, \"~> 0.11.0\"}"
assert file =~ "{:scenic_driver_local, \"~> 0.11.0\"}"
end)
end) =~ "Your Scenic project was created successfully."
end)
Expand Down
4 changes: 2 additions & 2 deletions test/scenic_new_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ defmodule Mix.Tasks.Scenic.NewTest do
assert_file("#{@app_name}/mix.exs", fn file ->
assert file =~ "mod: {#{@module_name}, []}"

assert file =~ "{:scenic, \"~> 0.11.0-beta.0\"}"
assert file =~ "{:scenic_driver_local, \"~> 0.11.0-beta.0\"}"
assert file =~ "{:scenic, \"~> 0.11.0\"}"
assert file =~ "{:scenic_driver_local, \"~> 0.11.0\"}"
end)
end) =~ "Your Scenic project was created successfully."
end)
Expand Down

0 comments on commit c4bb53f

Please sign in to comment.