Skip to content

Commit c3cb7e2

Browse files
fix so that exist is allowed to be called in tests
1 parent 12f767b commit c3cb7e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/runner_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def when_no_thorfiles_exist
131131

132132
# Stub load and save to avoid thor.yaml from being overwritten
133133
allow(YAML).to receive(:load_file).and_return(@original_yaml)
134-
allow(File).to receive(:exists?).with(root_file).and_return(true)
134+
allow(File).to receive(:exist?).with(root_file).and_return(true)
135135
allow(File).to receive(:open).with(root_file, "w")
136136
end
137137

0 commit comments

Comments
 (0)