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

Version Path
vfs-momolog-0.0.1 spec/misc_spec.rb
vfs-0.4.8 spec/misc_spec.rb
vfs-0.4.7 spec/misc_spec.rb
vfs-0.4.6 spec/misc_spec.rb
vfs-0.4.5 spec/misc_spec.rb
vfs-0.4.4 spec/misc_spec.rb
vfs-0.4.3 spec/misc_spec.rb
vfs-0.4.2 spec/misc_spec.rb
vfs-0.4.1 spec/misc_spec.rb
vfs-0.4.0 spec/misc_spec.rb
io-0.0.1 spec/misc_spec.rb