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.
2 parents eaebcf7 + c4ffe1b commit ee86a5cCopy full SHA for ee86a5c
lib/iex/lib/iex/server.ex
@@ -221,7 +221,7 @@ defmodule IEx.Server do
221
222
scope =
223
if env = opts[:env] do
224
- scope = :elixir_scope.to_erl_env(env)
+ scope = :elixir_env.ex_to_scope(env)
225
:elixir.scope_for_eval(scope, delegate_locals_to: locals)
226
else
227
:elixir.scope_for_eval(file: "iex", delegate_locals_to: locals)
lib/iex/test/iex/server_test.exs
@@ -22,6 +22,12 @@ defmodule IEx.ServerTest do
22
end) =~ "[:bar, :foo]"
23
end
24
25
+ test "env option" do
26
+ assert capture_io("__ENV__.file", fn ->
27
+ boot([env: __ENV__])
28
+ end) =~ "server_test.exs"
29
+ end
30
+
31
# Take over
32
33
test "allows take over of the shell during boot" do
0 commit comments