Sha256: 4ae2fcd73da795977a1ee031b1ebdca25bfc41215913c1e8e052b7e7ff2642b6

Contents?: true

Size: 392 Bytes

Versions: 4

Compression:

Stored size: 392 Bytes

Contents

require 'helper'

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.7.9 test/extra/core_ext/test_pathname.rb
nanoc-4.7.8 test/extra/core_ext/test_pathname.rb
nanoc-4.7.7 test/extra/core_ext/test_pathname.rb
nanoc-4.7.6 test/extra/core_ext/test_pathname.rb