test/buildmaster/cotta/tc_physical_system.rb in BuildMaster-1.1.9 vs test/buildmaster/cotta/tc_physical_system.rb in BuildMaster-1.1.12

- old
+ new

@@ -1,14 +1,9 @@ -$:.unshift File.dirname(__FILE__) - -require 'file_system_behaviors' -require 'physical_system_stub' - -$:.unshift File.join(File.dirname(__FILE__), '..', '..', '..', 'lib', 'buildmaster') - -require 'cotta/physical_system' require 'spec' +dir = File.dirname(__FILE__) +require dir + '/../test' +require dir + '/file_system_behaviors' module BuildMaster describe PhysicalSystem do it_should_behave_like "FileSystemBehaviors" @@ -28,8 +23,12 @@ end it 'shell command should return output' do @system = PhysicalSystem.new @system.shell('ruby --version')[0..3].should == 'ruby' + end + + it 'should equals to any other physical system' do + PhysicalSystem.new.should == PhysicalSystem.new end end end \ No newline at end of file