$:.unshift File.dirname(__FILE__) require 'cotta_specifications' $:.unshift File.join(File.dirname(__FILE__), '..', '..', '..', 'lib', 'buildmaster') require 'spec' require 'cotta/in_memory_system' module BuildMaster context 'Directory object with cotta for in memory system' do extend CottaSpecifications setup do @system = InMemorySystem.new end specify 'dir should not be equal if system different' do (BuildMaster::CottaDir.new(InMemorySystem.new, Pathname.new('dir')) == @dir).should == false end specify 'to_s and inspect' do file = CottaFile.new(@system, '/one/two/file.txt') "#{file.to_s}".should == '/one/two/file.txt' end register_cotta_dir_specifications end end