Sha256: f99b3c4ad62eac42b985f47786b0c620acdaeb6e4f210193c20f895af9ec61ac
Contents?: true
Size: 565 Bytes
Versions: 5
Compression:
Stored size: 565 Bytes
Contents
# encoding: utf-8 # # This file is part of the cowtech-extensions gem. Copyright (C) 2011 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 Cowtech::Extensions::Pathname do let(:reference) { ::Pathname.new($0) } before(:all) do ::Cowtech::Extensions.load! end describe "#components" do it "should return the components of the path" do ([""] + reference.components).should == reference.to_s.split("/") end end end
Version data entries
5 entries across 5 versions & 1 rubygems