$:.unshift File.dirname(__FILE__) require 'system_file_specifications' $:.unshift File.join(File.dirname(__FILE__), '..', '..', '..', 'lib', 'buildmaster') require 'cotta/in_memory_system' require 'spec' module BuildMaster context 'In memory system' do setup do @system = InMemorySystem.new @ios = Array.new end teardown do @ios.each {|io| io.close unless io.closed?} end register_system_file_specifications specify 'root directory always exists' do @system.dir_exists?(Pathname.new('/')).should == true @system.dir_exists?(Pathname.new('D:/')).should == true end end end