Sha256: e091017ef3a78d4c537d402239056127c9ec529aca52161bb35f20fac4b9ce2d

Contents?: true

Size: 395 Bytes

Versions: 4

Compression:

Stored size: 395 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').__nanoc_components
  end

  def test_include_component
    assert Pathname.new('/home/ddfreyne/').__nanoc_include_component?('ddfreyne')
    refute Pathname.new('/home/ddfreyne/').__nanoc_include_component?('acid')
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nanoc-4.0.0b2 test/extra/core_ext/test_pathname.rb
nanoc-4.0.0b1 test/extra/core_ext/test_pathname.rb
nanoc-4.0.0a2 test/extra/core_ext/test_pathname.rb
nanoc-4.0.0a1 test/extra/core_ext/test_pathname.rb