test/buildmaster/cotta/tc_physical_system.rb in BuildMaster-0.9.1 vs test/buildmaster/cotta/tc_physical_system.rb in BuildMaster-1.0.6

- old
+ new

@@ -1,13 +1,13 @@ $:.unshift File.dirname(__FILE__) require 'system_file_specifications' require 'physical_system_stub' -$:.unshift File.join(File.dirname(__FILE__), '..', '..', '..', 'lib') +$:.unshift File.join(File.dirname(__FILE__), '..', '..', '..', 'lib', 'buildmaster') -require 'buildmaster/cotta/physical_system' +require 'cotta/physical_system' require 'spec' module BuildMaster context 'Physical System' do @@ -20,7 +20,17 @@ @ios.each {|io| io.close unless io.closed?} end register_system_file_specifications + specify 'root directory always exists' do + @system = PhysicalSystem.new + @system.dir_exists?(Pathname.new('/')).should == true + @system.dir_exists?(Pathname.new('D:/')).should == true + end + + specify 'shell command should return output' do + @system = PhysicalSystem.new + @system.shell('ruby --version')[0..3].should == 'ruby' + end end end \ No newline at end of file