Sha256: 79ad02f62f058fe99889f451923addec50d0ff75435225140846ee4d4811f314
Contents?: true
Size: 583 Bytes
Versions: 1
Compression:
Stored size: 583 Bytes
Contents
require 'spec' dir = File.dirname(__FILE__) require dir + '/../test' require dir + '/cotta_dir_behaviors' describe Cotta::InMemorySystem, 'with Cotta Dir' do it_should_behave_like 'CottaDirBehaviors' def create_system @system = Cotta.in_memory end it 'dir should not be equal if system different' do (Cotta::CottaDir.new(Cotta.in_memory, Pathname.new('dir')) == @dir).should == false end it 'to_s and inspect' do file = Cotta::CottaFile.new(@system, '/one/two/file.txt') "#{file.to_s}".should == '/one/two/file.txt' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cotta-1.0.0 | test/cotta/cotta_dir_in_memory_spec.rb |