Sha256: 63b10672e6160dc6c3347e887d431ebad94b8a665da2eaecf5d0cdc15f629d92

Contents?: true

Size: 508 Bytes

Versions: 3

Compression:

Stored size: 508 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 https://choosealicense.com/licenses/mit.
#

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

3 entries across 3 versions & 1 rubygems

Version Path
lazier-4.2.9 spec/lazier/pathname_spec.rb
lazier-4.2.8 spec/lazier/pathname_spec.rb
lazier-4.2.3 spec/lazier/pathname_spec.rb