test/test_branch_factory.rb in mercurial-ruby-0.7.3 vs test/test_branch_factory.rb in mercurial-ruby-0.7.4
- old
+ new
@@ -47,7 +47,12 @@
it "should return branches for commit" do
branches = @repository.branches.for_commit('bf6386c0a0cc')
branches.size.must_equal 5
branches.map(&:name).sort.must_equal %w(old-branch new-branch branch-from-remote another-branch default).sort
end
+
+ it "should find branch's full hash_id" do
+ branch = @repository.branches.all.first
+ branch.hash_id.must_equal 'e47455b9a2383085b400d649af4360b943c6d3cf'
+ end
end
\ No newline at end of file