Sha256: 4786799d56789c0a52747413e111bdce0686839338b5db4dc0c3a8f49c7002c6
Contents?: true
Size: 394 Bytes
Versions: 11
Compression:
Stored size: 394 Bytes
Contents
require 'spec_helper' describe 'Miscellaneous' do with_test_dir it "File should respond to :to_file, :to_entry" do path = "#{test_dir.path}/file" File.open(path, 'w'){|f| f.write 'something'} file = nil begin file = File.open path file.to_file.path.should == file.path file.to_entry.path.should == file.path ensure file.close end end end
Version data entries
11 entries across 11 versions & 3 rubygems