Skip to content

Commit

Permalink
Adds minor tweaks to the test.
Browse files Browse the repository at this point in the history
  • Loading branch information
amujumdar committed Oct 11, 2011
1 parent f5351ac commit 19761da
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/unit/bzr_xml_parser_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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.