Sha256: 6b2d36f3e9465d42077feee39d28d871917e6323bff3b075cb3a1249f781976f

Contents?: true

Size: 604 Bytes

Versions: 1

Compression:

Stored size: 604 Bytes

Contents

require 'spec_helper'

describe 'Entry' do
  with_test_fs

  before do
    @path = test_fs['a/b/c']
  end

  it "name" do
    @path.name.should == 'c'
  end

  it "string integration" do
    '/'.to_entry.path.should == '/'
    'a'.to_entry.path.should == "./a"
  end

  it 'tmp' do
    tmp = test_fs.tmp
    tmp.should be_dir

    tmp = nil
    test_fs.tmp do |path|
      tmp = path
      tmp.should be_dir
    end
    tmp.should_not exist
  end

  it 'should respond to local?'

  it 'should respond to host'

  describe 'attributes' do
    it 'created_at'

    it 'updated_at'

    it 'size'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vfs-0.3.14 spec/entry_spec.rb