Sha256: bf6bfe714602b92648925ab31db1d0bc8a92109c7ddbce33b11093679ddbaca1

Contents?: true

Size: 374 Bytes

Versions: 18

Compression:

Stored size: 374 Bytes

Contents

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

18 entries across 18 versions & 1 rubygems

Version Path
nanoc-4.4.5 test/extra/core_ext/test_pathname.rb
nanoc-4.4.4 test/extra/core_ext/test_pathname.rb
nanoc-4.4.3 test/extra/core_ext/test_pathname.rb
nanoc-4.4.2 test/extra/core_ext/test_pathname.rb
nanoc-4.4.1 test/extra/core_ext/test_pathname.rb
nanoc-4.4.0 test/extra/core_ext/test_pathname.rb
nanoc-4.3.8 test/extra/core_ext/test_pathname.rb
nanoc-4.3.7 test/extra/core_ext/test_pathname.rb
nanoc-4.3.6 test/extra/core_ext/test_pathname.rb
nanoc-4.3.5 test/extra/core_ext/test_pathname.rb
nanoc-4.3.4 test/extra/core_ext/test_pathname.rb
nanoc-4.3.3 test/extra/core_ext/test_pathname.rb
nanoc-4.3.2 test/extra/core_ext/test_pathname.rb
nanoc-4.3.1 test/extra/core_ext/test_pathname.rb
nanoc-4.3.0 test/extra/core_ext/test_pathname.rb
nanoc-4.2.4 test/extra/core_ext/test_pathname.rb
nanoc-4.2.3 test/extra/core_ext/test_pathname.rb
nanoc-4.2.2 test/extra/core_ext/test_pathname.rb