Sha256: 4f21a08dc417faacb8fbd1f8dafbfb913d028cf59c0c8e6e7892a0e021d2bec5

Contents?: true

Size: 392 Bytes

Versions: 18

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

18 entries across 18 versions & 1 rubygems

Version Path
nanoc-4.7.5 test/extra/core_ext/test_pathname.rb
nanoc-4.7.4 test/extra/core_ext/test_pathname.rb
nanoc-4.7.3 test/extra/core_ext/test_pathname.rb
nanoc-4.7.2 test/extra/core_ext/test_pathname.rb
nanoc-4.7.1 test/extra/core_ext/test_pathname.rb
nanoc-4.7.0 test/extra/core_ext/test_pathname.rb
nanoc-4.6.4 test/extra/core_ext/test_pathname.rb
nanoc-4.6.3 test/extra/core_ext/test_pathname.rb
nanoc-4.6.2 test/extra/core_ext/test_pathname.rb
nanoc-4.6.1 test/extra/core_ext/test_pathname.rb
nanoc-4.6.0 test/extra/core_ext/test_pathname.rb
nanoc-4.5.4 test/extra/core_ext/test_pathname.rb
nanoc-4.5.3 test/extra/core_ext/test_pathname.rb
nanoc-4.5.2 test/extra/core_ext/test_pathname.rb
nanoc-4.5.1 test/extra/core_ext/test_pathname.rb
nanoc-4.5.0 test/extra/core_ext/test_pathname.rb
nanoc-4.4.7 test/extra/core_ext/test_pathname.rb
nanoc-4.4.6 test/extra/core_ext/test_pathname.rb