File tree Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -84,13 +84,7 @@ def try_load(target)
84
84
85
85
names . each do |name |
86
86
config [ :path ] . each do |dir |
87
- begin
88
- file = File . expand_path name , dir
89
- rescue ArgumentError => e
90
- # File.expand_path can issue error e.g. if HOME is not available
91
- warn "File.expand_path(#{ name } , #{ dir } ) failed with: #{ e } "
92
- next
93
- end
87
+ file = File . expand_path name , dir
94
88
if @loaded . include? ( file )
95
89
return true
96
90
elsif File . exist? file
@@ -289,7 +283,6 @@ def self.main(child_process = true)
289
283
290
284
script = new
291
285
script . load_default
292
- script . try_load '~/.mspecrc'
293
286
script . options
294
287
script . signals
295
288
script . register
Original file line number Diff line number Diff line change @@ -96,11 +96,6 @@ class MSSClass < MSpecScript; end
96
96
MSpecScript . main
97
97
end
98
98
99
- it "attempts to load the '~/.mspecrc' script" do
100
- expect ( @script ) . to receive ( :try_load ) . with ( '~/.mspecrc' )
101
- MSpecScript . main
102
- end
103
-
104
99
it "calls the #options method on the script" do
105
100
expect ( @script ) . to receive ( :options )
106
101
MSpecScript . main
You can’t perform that action at this time.
0 commit comments