Sha256: ed30d1f49541c5ae4679515a9d6d9bd9ad414d5182709c9610b2611a846ca1d8
Contents?: true
Size: 523 Bytes
Versions: 26
Compression:
Stored size: 523 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), 'spec_helper')) 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
26 entries across 25 versions & 6 rubygems