Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (22 sloc) 0.865 kB
# Code Generated by ZenTest v. 3.6.1
# classname: asrt / meth = ratio%
# TaskQueue: 0 / 6 = 0.00%
# Task: 0 / 2 = 0.00%
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'test/unit' unless defined? $ZENTEST and $ZENTEST
require 'utility'
class TestUtility < Test::Unit::TestCase
def test_escaped_path
assert_equal('/test/Path\ Containing\ Spaces', escaped_path("/test/Path Containing Spaces"))
end
def test_filelist_from_root
# TODO: This isn't a very thorough test
file_dir = File.join(File.dirname(__FILE__), 'files')
assert_equal(3633, filelist_from_root(file_dir).size)
end
def test_super_chomp
assert_equal("chomp", super_chomp(" chomp"))
assert_equal("chomp", super_chomp(" chomp "))
assert_equal("chomp", super_chomp("chomp "))
end
end
Jump to Line
Something went wrong with that request. Please try again.