-Code.require_file "../test_helper.exs", __DIR__
+Code.require_file("../test_helper.exs", __DIR__)
 
 defmodule Mix.GeneratorTest do
   use MixTest.Case
 
   import Mix.Generator
 
-  embed_text :foo,     "foo"
-  embed_text :self,    from_file: __ENV__.file
-  embed_template :bar, "<%= @a + @b %>"
+  embed_text(:foo, "foo")
+  embed_text(:self, from_file: __ENV__.file)
+  embed_template(:bar, "<%= @a + @b %>")
 
   test "embed text" do
     assert foo_text() == "foo"


  test "create with conflict returning false" do
    in_tmp "create_file", fn ->
      File.write! "foo", "HELLO"
      send self(), {:mix_shell_input, :yes?, false}

      create_file "foo", "WORLD"
      assert File.read!("foo") == "HELLO"

      assert_received {:mix_shell, :yes?, ["foo already exists, overwrite?"]}


  test "create file" do
    in_tmp "create_file", fn ->
      create_file("foo", "HELLO")
      assert File.read!("foo") == "HELLO"
      assert_received {:mix_shell, :info, ["* creating foo"]}
    end
