Sha256: bbc84925acb990667b9fe33a15d114ee79a307535b0b11fcdd3d0cb151e3e097

Contents?: true

Size: 571 Bytes

Versions: 4

Compression:

Stored size: 571 Bytes

Contents

#!/usr/bin/env ruby

require 'test/unit'
require 'test/filecreation'
begin
  old_verbose = $VERBOSE
  $VERBOSE = nil
  require 'rake/contrib/sys'
ensure
  $VERBOSE = old_verbose
end

class TestSys < Test::Unit::TestCase
  include FileCreation

  def test_split_all
    assert_equal ['a'], Sys.split_all('a')
    assert_equal ['..'], Sys.split_all('..')
    assert_equal ['/'], Sys.split_all('/')
    assert_equal ['a', 'b'], Sys.split_all('a/b')
    assert_equal ['/', 'a', 'b'], Sys.split_all('/a/b')
    assert_equal ['..', 'a', 'b'], Sys.split_all('../a/b')
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rake-0.9.0.beta.4 test/contrib/test_sys.rb
rake-0.9.0.beta.2 test/contrib/test_sys.rb
rake-0.9.0.beta.1 test/contrib/test_sys.rb
rake-0.9.0.beta.0 test/contrib/test_sys.rb