Sha256: 220341e45a00d4997d3adb14e49b56076d770877d56950cf41ffca05bd995664
Contents?: true
Size: 1.16 KB
Versions: 2
Compression:
Stored size: 1.16 KB
Contents
require "spec_helper" class NetVersionTester include Configuration::NetVersion end describe :NetVersion, "when getting the win_dir" do before :each do @subject = NetVersionTester.new() end it "should be in the system path" do @subject.win_dir.upcase.should eq("C:\\WINDOWS") end end describe :NetVersion, "when getting the net version" do before :each do @subject = NetVersionTester.new() end it "should have v2.0" do @subject.get_net_version(:net2).should include("v2.0") end it "should have v3.0" do @subject.get_net_version(:net3).should include("v2.0") end it "should have v3.5" do @subject.get_net_version(:net35).should include("v3.5") end it "should have v4.0" do @subject.get_net_version(:net4).should include("v4.0") end it "should have v4.5" do @subject.get_net_version(:net45).should include("v4.0") end end describe :NetVersion, "when getting an unsupported net version" do before :each do @subject = NetVersionTester.new() end it "should fail" do lambda { @subject.get_net_version :fake }.should raise_error end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
albacore-1.0.0 | spec/netversion_spec.rb |
albacore-1.0.0.rc.3 | spec/netversion_spec.rb |