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

Version Path
nanoc-3.7.4 test/extra/core_ext/test_pathname.rb
nanoc-3.7.3 test/extra/core_ext/test_pathname.rb
nanoc-3.7.2 test/extra/core_ext/test_pathname.rb
nanoc-3.7.1 test/extra/core_ext/test_pathname.rb
nanoc-3.7.0 test/extra/core_ext/test_pathname.rb
nanoc-3.6.11 test/extra/core_ext/test_pathname.rb
nanoc-3.6.10 test/extra/core_ext/test_pathname.rb
nanoc-3.6.9 test/extra/core_ext/test_pathname.rb
nanoc-3.6.8 test/extra/core_ext/test_pathname.rb
nanoc-3.6.7 test/extra/core_ext/test_pathname.rb
nanoc-3.6.6 test/extra/core_ext/test_pathname.rb
nanoc-3.6.5 test/extra/core_ext/test_pathname.rb
nanoc-3.6.4 test/extra/core_ext/test_pathname.rb
nanoc-3.6.3 test/extra/core_ext/test_pathname.rb
nanoc-3.6.2 test/extra/core_ext/test_pathname.rb