Skip to content

Commit

Permalink
Use / instead of " for consistency in test regex
Browse files Browse the repository at this point in the history
  • Loading branch information
mobileoverlord authored and fhunleth committed Oct 15, 2018
1 parent cb5b5ab commit d8b7d55
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/nerves_new_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ defmodule Nerves.NewTest do
Mix.Tasks.Nerves.New.run([@app_name])

assert_file("#{@app_name}/mix.exs", fn file ->
assert file =~ ~r"extra_applications:.*runtime_tools"
assert file =~ ~r/extra_applications:.*runtime_tools/
end)
end)
end
Expand All @@ -116,11 +116,11 @@ defmodule Nerves.NewTest do
Mix.Tasks.Nerves.New.run([@app_name])

assert_file("#{@app_name}/mix.exs", fn file ->
assert file =~ ~r":ring_logger"
assert file =~ ~r/:ring_logger/
end)

assert_file("#{@app_name}/config/config.exs", fn file ->
assert file =~ ~r"RingLogger"
assert file =~ ~r/RingLogger/
end)
end)
end
Expand All @@ -130,7 +130,7 @@ defmodule Nerves.NewTest do
Mix.Tasks.Nerves.New.run([@app_name])

assert_file("#{@app_name}/mix.exs", fn file ->
assert file =~ ~r"build_embedded:"
assert file =~ ~r/build_embedded:/
end)
end)
end
Expand Down

0 comments on commit d8b7d55

Please sign in to comment.