Sha256: d540e386cb80c3ebebded5f69df77c90fbedfa9efa990b2c564e2759c17142e1

Contents?: true

Size: 519 Bytes

Versions: 10

Compression:

Stored size: 519 Bytes

Contents

#
# This file is part of the lazier gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
# Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
#

require "spec_helper"

describe Lazier::Pathname do
  subject { ::Pathname.new($0) }

  before(:all) do
    ::Lazier.load!(:pathname)
  end

  describe "#components" do
    it "should return the components of the path" do
      expect([""] + subject.components).to eq(subject.to_s.split("/"))
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
lazier-4.2.2 spec/lazier/pathname_spec.rb
lazier-4.2.1 spec/lazier/pathname_spec.rb
lazier-4.2.0 spec/lazier/pathname_spec.rb
lazier-4.1.0 spec/lazier/pathname_spec.rb
lazier-4.0.6 spec/lazier/pathname_spec.rb
lazier-4.0.5 spec/lazier/pathname_spec.rb
lazier-4.0.4 spec/lazier/pathname_spec.rb
lazier-4.0.3 spec/lazier/pathname_spec.rb
lazier-4.0.2 spec/lazier/pathname_spec.rb
lazier-4.0.1 spec/lazier/pathname_spec.rb