Sha256: 2a93e0b5d0f1b1b71028ed5ac194bf74900657407929e9b332f774c8d9bb03ca

Contents?: true

Size: 526 Bytes

Versions: 7

Compression:

Stored size: 526 Bytes

Contents

# encoding: utf-8
#
# 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!
  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

7 entries across 7 versions & 1 rubygems

Version Path
lazier-3.5.7 spec/lazier/pathname_spec.rb
lazier-3.5.6 spec/lazier/pathname_spec.rb
lazier-3.5.5 spec/lazier/pathname_spec.rb
lazier-3.5.4 spec/lazier/pathname_spec.rb
lazier-3.5.3 spec/lazier/pathname_spec.rb
lazier-3.5.2 spec/lazier/pathname_spec.rb
lazier-3.5.1 spec/lazier/pathname_spec.rb