   describe "options" do
     test "prefix" do
       assert capture_io(fn ->
-        boot([prefix: "pry"])
-      end) =~ "pry(1)> "
+               boot(prefix: "pry")
+             end) =~ "pry(1)> "
     end
 
     test "env" do
       assert capture_io("__ENV__.file", fn ->
-        boot([env: __ENV__])
-      end) =~ "server_test.exs"
+               boot(env: __ENV__)
+             end) =~ "server_test.exs"
     end
   end
 
   describe "take_over" do
     test "allows takeover of the shell during boot" do
       assert capture_io("Y\na+b", fn ->
-        server = self()
-        boot([], fn ->
-          opts = [prefix: "dbg", binding: [a: 1, b: 2]]
-          IEx.Server.take_over("iex:13", opts, server)
-        end)
-      end) =~ "dbg(1)> "
+               server = self()
+
+               boot([], fn ->
+                 opts = [prefix: "dbg", binding: [a: 1, b: 2]]
+                 IEx.Server.take_over("iex:13", opts, server)
+               end)
+             end) =~ "dbg(1)> "
     end
 
     test "continues if takeover is refused" do
       assert capture_io("N\n", fn ->
-        server = self()
-        boot([], fn ->
-          opts = [prefix: "dbg", binding: [a: 1, b: 2]]
-          IEx.Server.take_over("iex:13", opts, server)
-        end)
-      end) =~ "iex(1)> "
+               server = self()
+
+               boot([], fn ->
+                 opts = [prefix: "dbg", binding: [a: 1, b: 2]]
+                 IEx.Server.take_over("iex:13", opts, server)
+               end)
+             end) =~ "iex(1)> "
     end
 
     test "fails if callback during boot fails" do
       assert capture_io(fn ->
-        boot([], fn -> exit(0) end)
-      end) == ""
+               boot([], fn -> exit(0) end)
+             end) == ""
     end
 
     test "fails when there is no shell" do


  test "pry wraps around takeover" do
    require IEx
    assert capture_io(fn ->
      assert IEx.pry == {:error, :no_iex}
    end) =~ "Is an IEx shell running?"
  end

  # Helpers

  defp boot(opts, callback \\ fn -> nil end) do
    IEx.Server.start(Keyword.merge([dot_iex_path: ""], opts),
                     {:erlang, :apply, [callback, []]})
  end
end

Code.require_file("../test_helper.exs", __DIR__)

defmodule IEx.ServerTest do
  use IEx.Case
