File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ def assert_load_nothing
37
37
end
38
38
39
39
def setup_options ( env , dir , suffix = nil )
40
+ env . update ( { 'HOME' => @tmpdir } )
40
41
optdir = File . join ( @tmpdir , dir )
41
42
FileUtils . mkdir_p ( optdir )
42
43
file = File . join ( optdir , [ @basename , suffix ] . join ( "" ) )
@@ -75,7 +76,6 @@ def setup_options_home_config_settings(&block)
75
76
end
76
77
77
78
def setup_options_home_options ( envs , &block )
78
- envs . update ( { 'HOME' => @tmpdir } )
79
79
setup_options ( envs , "options" , ".options" , &block )
80
80
end
81
81
@@ -145,7 +145,9 @@ def test_load_home_config_settings
145
145
end
146
146
147
147
def test_load_nothing
148
- assert_load_nothing
148
+ setup_options ( { 'HOME' => '/' } , "" ) do
149
+ assert_load_nothing
150
+ end
149
151
end
150
152
151
153
def test_not_expand_path_basename
You can’t perform that action at this time.
0 commit comments