summaryrefslogtreecommitdiff
path: root/lib/mix/test/mix/tasks/format_test.exs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mix/test/mix/tasks/format_test.exs')
-rw-r--r--lib/mix/test/mix/tasks/format_test.exs17
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/mix/test/mix/tasks/format_test.exs b/lib/mix/test/mix/tasks/format_test.exs
index 05be1212e..d6b6793e9 100644
--- a/lib/mix/test/mix/tasks/format_test.exs
+++ b/lib/mix/test/mix/tasks/format_test.exs
@@ -744,7 +744,7 @@ defmodule Mix.Tasks.FormatTest do
[]
""")
- message = "Expected :inputs or :subdirectories key in lib/.formatter.exs"
+ message = "Expected :inputs or :subdirectories key in #{Path.expand("lib/.formatter.exs")}"
assert_raise Mix.Error, message, fn -> Mix.Tasks.Format.run([]) end
end)
end
@@ -799,16 +799,17 @@ defmodule Mix.Tasks.FormatTest do
Mix.Tasks.Format.run([])
message1 =
- "Both .formatter.exs and lib/.formatter.exs specify the file lib/a.ex in their " <>
- ":inputs option. To resolve the conflict, the configuration in .formatter.exs " <>
- "will be ignored. Please change the list of :inputs in one of the formatter files " <>
- "so only one of them matches lib/a.ex"
+ "Both .formatter.exs and #{Path.expand("lib/.formatter.exs")} specify the file " <>
+ "#{Path.expand("lib/a.ex")} in their :inputs option. To resolve the conflict, " <>
+ "the configuration in .formatter.exs will be ignored. Please change the list of " <>
+ ":inputs in one of the formatter files so only one of them matches #{Path.expand("lib/a.ex")}"
message2 =
- "Both lib/.formatter.exs and foo/.formatter.exs specify the file lib/a.ex in their " <>
- ":inputs option. To resolve the conflict, the configuration in lib/.formatter.exs " <>
+ "Both #{Path.expand("lib/.formatter.exs")} and #{Path.expand("foo/.formatter.exs")} " <>
+ "specify the file #{Path.expand("lib/a.ex")} in their :inputs option. To resolve " <>
+ "the conflict, the configuration in #{Path.expand("lib/.formatter.exs")} " <>
"will be ignored. Please change the list of :inputs in one of the formatter files " <>
- "so only one of them matches lib/a.ex"
+ "so only one of them matches #{Path.expand("lib/a.ex")}"
assert_received {:mix_shell, :error, [^message1]}
assert_received {:mix_shell, :error, [^message2]}