test/repomen/repo/handler/git_test.rb in repomen-0.1.2 vs test/repomen/repo/handler/git_test.rb in repomen-0.1.3
- old
+ new
@@ -14,9 +14,17 @@
url = "git@github.com:octocat/Hello-World.git"
handler = described_class.new(url, dir)
handler.retrieve
assert File.exists?(handler.path)
assert File.directory?(handler.path)
+
+ assert handler.revision_info
+ info = handler.revision_info
+ refute info["name"].nil?
+ refute info["email"].nil?
+ refute info["date"].nil?
+ refute info["commit"].nil?
+ refute info["message"].nil?
end
it "should recognize a Github URL via https" do
url = "https://github.com/octocat/Hello-World.git"
handler = described_class.new(url, dir)