Sha256: 6e4eb56323ac8b4b745f289d4bdf2886c4281ca0f43d22aab345457f1eb2bc97

Contents?: true

Size: 540 Bytes

Versions: 6

Compression:

Stored size: 540 Bytes

Contents

# encoding: utf-8
#
# This file is part of the lazier gem. Copyright (C) 2012 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

6 entries across 6 versions & 1 rubygems

Version Path
lazier-1.0.6 spec/lazier/pathname_spec.rb
lazier-1.0.5 spec/lazier/pathname_spec.rb
lazier-1.0.4 spec/lazier/pathname_spec.rb
lazier-1.0.3 spec/cowtech-extensions/pathname_spec.rb
lazier-1.0.2 spec/cowtech-extensions/pathname_spec.rb
lazier-1.0.1 spec/cowtech-extensions/pathname_spec.rb