Sha256: 7e3b68cf94b72e82f1d9736ccbe9b1f8264804eb7a3fe56ca3bc87addecf7582
Contents?: true
Size: 423 Bytes
Versions: 3
Compression:
Stored size: 423 Bytes
Contents
# frozen_string_literal: true 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nanoc-4.7.12 | test/extra/core_ext/test_pathname.rb |
nanoc-4.7.11 | test/extra/core_ext/test_pathname.rb |
nanoc-4.7.10 | test/extra/core_ext/test_pathname.rb |