We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc21e1b commit 3e9cfc5Copy full SHA for 3e9cfc5
lib/mix/test/mix/utils_test.exs
@@ -217,16 +217,14 @@ defmodule Mix.UtilsTest do
217
end
218
219
test "verify that writing to STDOUT works as expected" do
220
- in_tmp("make sure we don't actually write to disk", fn ->
221
- output =
222
- ExUnit.CaptureIO.capture_io(fn ->
223
- Mix.Utils.write_according_to_opts!("the_file.txt", ["some text"], output: "-")
224
- end)
+ output =
+ ExUnit.CaptureIO.capture_io(fn ->
+ Mix.Utils.write_according_to_opts!("the_file.txt", ["some text"], output: "-")
+ end)
225
226
- assert output == "some text"
+ assert output == "some text"
227
228
- assert File.exists?("the_file.txt") == false
229
+ refute File.exists?("the_file.txt")
230
231
232
0 commit comments