make example test wiki a git repo and test it

This commit is contained in:
Tom Preston-Werner
2010-04-07 13:36:48 -07:00
parent acae4686e0
commit 6c4e343b0c
24 changed files with 495 additions and 19 deletions
+11 -4
View File
@@ -1,8 +1,15 @@
require 'helper'
class RepoTest < Test::Unit::TestCase
def test_repo_creation
repo = Gollum::Repo.new("examples/lotr")
assert_equal "examples/lotr", repo.path
context "Repo" do
setup do
@repo = Gollum::Repo.new("examples/lotr.git")
end
test "repo path" do
assert_equal "examples/lotr.git", @repo.path
end
test "git repo" do
assert_equal Grit::Repo, @repo.repo.class
end
end