diff plugins/redmine_bibliography/test/unit/author_test.rb @ 1372:a8832968d927 bibliography_testing

added another simple test to test the relationship between authors/authorships
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Thu, 22 Aug 2013 12:42:09 +0100
parents a8d468e143f7
children
line wrap: on
line diff
--- a/plugins/redmine_bibliography/test/unit/author_test.rb	Thu Aug 22 11:44:31 2013 +0100
+++ b/plugins/redmine_bibliography/test/unit/author_test.rb	Thu Aug 22 12:42:09 2013 +0100
@@ -8,7 +8,10 @@
 
     def test_relationships
         author = Author.find(1)
-        assert author.authorships.first.name_on_paper == "Yih-Farn R. Chen"
+
+        assert_equal(author.authorships.first.name_on_paper, "Yih-Farn R. Chen")
+        assert_equal(author.authorships.count, 2)
+
     end
 
 end