Sha256: b08ac22d15e17ebe1a6703216ca88b1c50c4355d19bd1493619ea8e61f095be2

Contents?: true

Size: 540 Bytes

Versions: 38

Compression:

Stored size: 540 Bytes

Contents

# encoding: utf-8
#
# This file is part of the lazier gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
# 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
  let(:reference) { ::Pathname.new($0) }

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

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

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
lazier-3.3.5 spec/lazier/pathname_spec.rb
lazier-3.3.3 spec/lazier/pathname_spec.rb
lazier-3.3.2 spec/lazier/pathname_spec.rb
lazier-3.3.1 spec/lazier/pathname_spec.rb
lazier-3.3.0 spec/lazier/pathname_spec.rb
lazier-3.2.7 spec/lazier/pathname_spec.rb
lazier-3.2.6 spec/lazier/pathname_spec.rb
lazier-3.2.5 spec/lazier/pathname_spec.rb
lazier-3.2.4 spec/lazier/pathname_spec.rb
lazier-3.2.3 spec/lazier/pathname_spec.rb
lazier-3.2.2 spec/lazier/pathname_spec.rb
lazier-3.2.1 spec/lazier/pathname_spec.rb
lazier-3.2.0 spec/lazier/pathname_spec.rb
lazier-3.1.0 spec/lazier/pathname_spec.rb
lazier-3.0.1 spec/lazier/pathname_spec.rb
lazier-3.0.0 spec/lazier/pathname_spec.rb
lazier-2.8.1 spec/lazier/pathname_spec.rb
lazier-2.8.0 spec/lazier/pathname_spec.rb
lazier-2.7.0 spec/lazier/pathname_spec.rb
lazier-2.6.7 spec/lazier/pathname_spec.rb