Sha256: 9c6beaacb9efdbf5df299b8cdbda28b1c9e06b93dca679a3d704f619e198aa5d
Contents?: true
Size: 374 Bytes
Versions: 15
Compression:
Stored size: 374 Bytes
Contents
# encoding: utf-8 class Nanoc::Extra::CoreExtPathnameTest < Nanoc::TestCase def test_components assert_equal %w( / a bb ccc dd e ), Pathname.new('/a/bb/ccc/dd/e').components end def test_include_component assert Pathname.new('/home/ddfreyne/').include_component?('ddfreyne') refute Pathname.new('/home/ddfreyne/').include_component?('acid') end end
Version data entries
15 entries across 15 versions & 1 rubygems