Fix tests for added example repo pages

This commit is contained in:
kristi
2012-05-14 02:01:33 -07:00
parent 82ccb0cedb
commit 6191f60025
4 changed files with 27 additions and 5 deletions
+3 -2
View File
@@ -18,8 +18,9 @@ context "GitAccess" do
assert @access.ref_map.empty?
assert @access.tree_map.empty?
@access.tree 'master'
assert_equal({"master"=>"1db89ebba7e2c14d93b94ff98cfa3708a4f0d4e3"}, @access.ref_map)
assert_equal({"master"=>"b0de6e794dfdc7ef3400e894225bfe23308aae5c"}, @access.ref_map)
@access.tree '1db89ebba7e2c14d93b94ff98cfa3708a4f0d4e3'
map = @access.tree_map['1db89ebba7e2c14d93b94ff98cfa3708a4f0d4e3']
assert_equal 'Bilbo-Baggins.md', map[0].path
assert_equal '', map[0].dir
@@ -49,4 +50,4 @@ context "GitAccess" do
test "cannot access tree from invalid ref" do
assert_equal [], @access.tree('foo')
end
end
end