Sha256: bab2df4be89d3f36fa49b91742462a7ff478f0b5f1eacc48ce6d2afe2b1c447f
Contents?: true
Size: 500 Bytes
Versions: 3
Compression:
Stored size: 500 Bytes
Contents
require 'spec_helper' require 'extlib/virtual_file' describe VirtualFile do it 'inherits from StringIO' do VirtualFile.superclass.should == StringIO end it 'has path reader' do @vf = VirtualFile.new("virtual", "elvenpath") # =~ /#{Dir::tmpdir}/ causes RegExp to fail with nested *?+ on 1.8.6 @vf.path.should == "elvenpath" end it 'has path writer' do @vf = VirtualFile.new("virtual", "elvenpath") @vf.path = "newbase" @vf.path.should == "newbase" end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
extlib-0.9.16 | spec/virtual_file_spec.rb |
extlib-0.9.15 | spec/virtual_file_spec.rb |
robsharp-extlib-0.9.15 | spec/virtual_file_spec.rb |