Sha256: b8110f7ebf207649c0bbacab210675d33931d632775241b59f333d4d3a397863

Contents?: true

Size: 376 Bytes

Versions: 22

Compression:

Stored size: 376 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

22 entries across 22 versions & 1 rubygems

Version Path
nanoc-4.2.1 test/extra/core_ext/test_pathname.rb
nanoc-4.2.0 test/extra/core_ext/test_pathname.rb
nanoc-4.1.6 test/extra/core_ext/test_pathname.rb
nanoc-4.2.0b1 test/extra/core_ext/test_pathname.rb
nanoc-4.1.5 test/extra/core_ext/test_pathname.rb
nanoc-4.1.4 test/extra/core_ext/test_pathname.rb
nanoc-4.1.3 test/extra/core_ext/test_pathname.rb
nanoc-4.1.2 test/extra/core_ext/test_pathname.rb
nanoc-4.1.1 test/extra/core_ext/test_pathname.rb
nanoc-4.1.0 test/extra/core_ext/test_pathname.rb
nanoc-4.1.0rc2 test/extra/core_ext/test_pathname.rb
nanoc-4.1.0rc1 test/extra/core_ext/test_pathname.rb
nanoc-4.1.0b1 test/extra/core_ext/test_pathname.rb
nanoc-4.1.0a1 test/extra/core_ext/test_pathname.rb
nanoc-4.0.2 test/extra/core_ext/test_pathname.rb
nanoc-4.0.1 test/extra/core_ext/test_pathname.rb
nanoc-4.0.0 test/extra/core_ext/test_pathname.rb
nanoc-4.0.0rc3 test/extra/core_ext/test_pathname.rb
nanoc-4.0.0rc2 test/extra/core_ext/test_pathname.rb
nanoc-4.0.0rc1 test/extra/core_ext/test_pathname.rb