 
   test "force create file" do
     in_tmp "create_file", fn ->
-      File.write! "foo", "HELLO"
+      File.write!("foo", "HELLO")
 
-      create_file "foo", "WORLD", force: true
+      create_file("foo", "WORLD", force: true)
       assert File.read!("foo") == "WORLD"
 
       refute_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

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 %>")

  test "embed text" do
    assert foo_text() == "foo"
