Sha256: 330291972dcde090b7775679aefc2b7c6f4fb5fc2e723c133ebd870ea2d8fd04
Contents?: true
Size: 371 Bytes
Versions: 2
Compression:
Stored size: 371 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nanoc-3.8.0 | test/extra/core_ext/test_pathname.rb |
nanoc-3.7.5 | test/extra/core_ext/test_pathname.rb |