diff --git a/test/unit/vagrant/util/install_cli_autocomplete_test.rb b/test/unit/vagrant/util/install_cli_autocomplete_test.rb index a62c065dd..330b8b448 100644 --- a/test/unit/vagrant/util/install_cli_autocomplete_test.rb +++ b/test/unit/vagrant/util/install_cli_autocomplete_test.rb @@ -12,7 +12,7 @@ describe Vagrant::Util::InstallZSHShellConfig do describe "#shell_installed" do it "should return path to config file if exists" do - allow(File).to receive(:exists?).with(target_file).and_return(true) + allow(File).to receive(:exist?).with(target_file).and_return(true) expect(subject.shell_installed(home)).to eq(target_file) end @@ -36,7 +36,7 @@ describe Vagrant::Util::InstallZSHShellConfig do describe "#install" do it "installs autocomplete" do - allow(File).to receive(:exists?).with(target_file).and_return(true) + allow(File).to receive(:exist?).with(target_file).and_return(true) allow(File).to receive(:foreach).with(target_file).and_yield("nothing") expect(File).to receive(:open).with(target_file, "a") subject.install(home) @@ -67,4 +67,4 @@ describe Vagrant::Util::InstallCLIAutocomplete do expect{ subject.install(["oops"]) }.to raise_error(ArgumentError) end end -end \ No newline at end of file +end