This commit is contained in:
Joshua Peek
2011-05-11 22:08:12 -05:00
parent b424c32bb4
commit 39bd49950e
5 changed files with 75 additions and 31 deletions

View File

@@ -64,21 +64,21 @@ class TestPathname < Test::Unit::TestCase
assert_equal 'text', Pathname.new("defun.kt").media_type
end
def test_file
assert Pathname.new("octocat.png").file?
assert Pathname.new("linguist.gem").file?
end
# def test_file
# assert Pathname.new("octocat.png").file?
# assert Pathname.new("linguist.gem").file?
# end
def test_text
assert Pathname.new("file.txt").text?
assert Pathname.new("file.json").text?
end
# def test_text
# assert Pathname.new("file.txt").text?
# assert Pathname.new("file.json").text?
# end
def test_image
assert Pathname.new("octocat.png").image?
assert Pathname.new("octocat.jpg").image?
assert Pathname.new("octocat.jpeg").image?
assert Pathname.new("octocat.gif").image?
assert !Pathname.new("octocat.psd").image?
end
# def test_image
# assert Pathname.new("octocat.png").image?
# assert Pathname.new("octocat.jpg").image?
# assert Pathname.new("octocat.jpeg").image?
# assert Pathname.new("octocat.gif").image?
# assert !Pathname.new("octocat.psd").image?
# end
end