%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/plesk/ruby/2.3.8/lib64/ruby/gems/2.3.0/gems/rake-10.4.2/test/
Upload File :
Create Path :
Current File : //opt/plesk/ruby/2.3.8/lib64/ruby/gems/2.3.0/gems/rake-10.4.2/test/test_rake_pathname_extensions.rb

require File.expand_path('../helper', __FILE__)
require 'rake/ext/pathname'

class TestRakePathnameExtensions < Rake::TestCase
  def test_ext_works_on_pathnames
    pathname = Pathname.new("abc.foo")
    assert_equal Pathname.new("abc.bar"), pathname.ext("bar")
  end

  def test_path_map_works_on_pathnames
    pathname = Pathname.new("this/is/a/dir/abc.rb")
    assert_equal Pathname.new("abc.rb"), pathname.pathmap("%f")
    assert_equal Pathname.new("this/is/a/dir"), pathname.pathmap("%d")
  end
end

Zerion Mini Shell 1.0