Permalink
Browse files

Adds minor tweaks to the test.

  • Loading branch information...
1 parent f5351ac commit 19761daa7ca525c75bb18340544ad4489e0f704e @amujumdar amujumdar committed Oct 11, 2011
Showing with 17 additions and 0 deletions.
  1. +17 −0 test/unit/bzr_xml_parser_test.rb
@@ -209,6 +209,17 @@ def test_different_author_and_committer
<timestamp>Tue 2011-10-11 12:26:01 -0400</timestamp>
<message><![CDATA[Updated by two authors.]]></message>
</log>
+ <log>
+ <revno>4</revno>
+ <revisionid>test@example.com-20111011162601-dummyrevision</revisionid>
+ <parents>
+ <parent>test@example.com-20111011162601-ud1nidteswfdbhbu</parent>
+ </parents>
+ <committer>test &lt;test@example.com&gt;</committer>
+ <branch-nick>bzr_with_authors</branch-nick>
+ <timestamp>Tue 2011-10-11 12:28:01 -0400</timestamp>
+ <message><![CDATA[Updated by committer.]]></message>
+ </log>
</logs>
XML
commits = BzrXmlParser.parse(xml)
@@ -227,6 +238,12 @@ def test_different_author_and_committer
assert_equal "test@example.com", c.committer_email
assert_equal "Jim Beam", c.author_name
assert_equal "jimbeam@example.com", c.author_email
+
+ c = commits[3]
+ assert_equal "test", c.committer_name
+ assert_equal "test@example.com", c.committer_email
+ assert_equal nil, c.author_name
+ assert_equal nil, c.author_email
end
end
end

0 comments on commit 19761da

Please sign in to comment.