Sha256: 3eb7cb7bd796c245656c84984bbfd4ef1b332039b3c4bcf479dee974edf83730
Contents?: true
Size: 1.13 KB
Versions: 4
Compression:
Stored size: 1.13 KB
Contents
require 'spec_helper' require 'albacore/config/netversion' class NetVersionTest include Configuration::NetVersion end describe :NetVersion, 'when getting the win_dir' do before do @subject = NetVersionTest.new @win_dir = @subject.win_dir end it 'should be in the system path' do @win_dir.upcase.should eq 'C:\\WINDOWS' end end describe :NetVersion, 'when getting the net version' do before do @subject = NetVersionTest.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 do @subject = NetVersionTest.new end it 'should fail' do lambda { @subject.get_net_version :fake }.should raise_error end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
albacore-0.3.6 | spec/netversion_spec.rb |
albacore-1.0.0.rc.2 | spec/netversion_spec.rb |
albacore-1.0.0.rc.1 | spec/netversion_spec.rb |
albacore-0.3.5 | spec/netversion_spec.rb |