 Code.require_file("test_helper.exs", __DIR__)
 
-defmodule Elixir.FileCase do
-  use ExUnit.CaseTemplate
+defmodule FileTest do
+  use ExUnit.Case
   import PathHelpers
-
-  using do
-    quote do
-      import PathHelpers
-    end
-  end
 
   setup do
     File.mkdir_p!(tmp_path())
     on_exit(fn -> File.rm_rf(tmp_path()) end)
     :ok
   end
-end
-
-defmodule FileTest do
-  use Elixir.FileCase
-
-  defmodule Rename do
+
+  describe "rename" do
     # Following Erlang's underlying implementation
     #
     # Renaming files

    # other tests
    # {:error, :enoent} -> rename unknown source
    # :ok               -> rename preserves mode
    use Elixir.FileCase

    test "rename file to existing file default behaviour" do
      src = tmp_fixture_path("file.txt")
      dest = tmp_path("tmp.file")

  end

  defp io_error?(result) do
    elem(result, 1) in [:enotdir, :eio, :enoent, :eisdir]
  end
end
