test/unit/vagrant/util/platform_test.rb in vagrant-unbundled-1.9.5.1 vs test/unit/vagrant/util/platform_test.rb in vagrant-unbundled-1.9.7.1

- old
+ new

@@ -27,17 +27,23 @@ with_temp_env(VAGRANT_DETECTED_OS: "cygwin") do expect(subject).to be_cygwin end end + it "returns true if OSTYPE includes cygwin" do + with_temp_env(OSTYPE: "cygwin") do + expect(subject).to be_cygwin + end + end + it "returns true if platform has cygwin" do allow(subject).to receive(:platform).and_return("cygwin") expect(subject).to be_cygwin end - it "returns true if the PATH contains cygwin" do + it "returns false if the PATH contains cygwin" do with_temp_env(PATH: "C:/cygwin") do - expect(subject).to be_cygwin + expect(subject).to_not be_cygwin end end it "returns false if nothing is available" do expect(subject).to_not be_cygwin