We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adebb48 commit bdaf120Copy full SHA for bdaf120
lib/autobuild/environment.rb
@@ -256,6 +256,7 @@ def inherit(*names)
256
if flag
257
@inherited_variables |= names
258
names.each do |env_name|
259
+ @environment[env_name] ||= []
260
init_from_env(env_name)
261
end
262
else
test/test_environment.rb
@@ -12,6 +12,11 @@ module Autobuild
12
@env = Environment.new
13
@env.inherit 'AUTOBUILD_TEST'
14
15
+
16
+ it "is available right after the inherit call" do
17
+ assert_equal "val1:val0", @env["AUTOBUILD_TEST"]
18
+ end
19
20
describe "push_path" do
21
it "does not re-read the inherited environment" do
22
0 commit comments