Sha256: aad1ee467d7135f30d55ad5520f4e357ecc013c5a62885999284d3c2615d041a

Contents?: true

Size: 413 Bytes

Versions: 17

Compression:

Stored size: 413 Bytes

Contents

# encoding: utf-8

class Nanoc::Extra::CoreExtPathnameTest < MiniTest::Unit::TestCase

  include Nanoc::TestHelpers

  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

17 entries across 17 versions & 1 rubygems

Version Path
nanoc-3.6.1 test/extra/core_ext/test_pathname.rb
nanoc-3.6.0 test/extra/core_ext/test_pathname.rb
nanoc-3.5.0 test/extra/core_ext/test_pathname.rb
nanoc-3.5.0b2 test/extra/core_ext/test_pathname.rb
nanoc-3.5.0b1 test/extra/core_ext/test_pathname.rb
nanoc-3.4.3 test/extra/core_ext/test_pathname.rb
nanoc-3.4.2 test/extra/core_ext/test_pathname.rb
nanoc-3.4.1 test/extra/core_ext/test_pathname.rb
nanoc-3.4.0 test/extra/core_ext/test_pathname.rb
nanoc-3.3.7 test/extra/core_ext/test_pathname.rb
nanoc-3.3.6 test/extra/core_ext/test_pathname.rb
nanoc-3.3.5 test/extra/core_ext/test_pathname.rb
nanoc-3.3.4 test/extra/core_ext/test_pathname.rb
nanoc-3.3.3 test/extra/core_ext/test_pathname.rb
nanoc-3.3.2 test/extra/core_ext/test_pathname.rb
nanoc-3.3.1 test/extra/core_ext/test_pathname.rb
nanoc-3.3.0 test/extra/core_ext/test_pathname.rb