Separate Blob name and pathname

This commit is contained in:
Joshua Peek
2011-05-13 16:20:15 -05:00
parent 5edd3a02be
commit fcc2bc172f
2 changed files with 18 additions and 9 deletions

View File

@@ -30,7 +30,11 @@ class TestBlob < Test::Unit::TestCase
end
def test_name
assert_equal Pathname.new("foo.rb"), blob("foo.rb").name
assert_equal "foo.rb", blob("foo.rb").name
end
def test_pathname
assert_equal Pathname.new("foo.rb"), blob("foo.rb").pathname
end
def test_mime_type