Sha256: b166bc345846ae9f9cbd8260412e851843886a29afd153cc0e0628821112cee1

Contents?: true

Size: 397 Bytes

Versions: 3

Compression:

Stored size: 397 Bytes

Contents

require 'spec_helper'
module Polygon
  describe Entry, 'path' do

    let(:entry){ Entry.new(Path.dir, Path.here % Path.dir) }

    subject{ entry.path }

    it 'is a path instance' do
      subject.should be_a(Path)
    end

    it "is the concatenation of root and relative_path" do
      subject.should eq(entry.root / entry.relative_path)
      subject.should eq(Path.here)
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
polygon-0.10.1 spec/entry/test_path.rb
polygon-0.10.0 spec/entry/test_path.rb
polygon-0.9.1 spec/entry/test_path.rb