Revision 1372:a8832968d927 plugins/redmine_bibliography/test/unit
| plugins/redmine_bibliography/test/unit/author_test.rb | ||
|---|---|---|
| 8 | 8 |
|
| 9 | 9 |
def test_relationships |
| 10 | 10 |
author = Author.find(1) |
| 11 |
assert author.authorships.first.name_on_paper == "Yih-Farn R. Chen" |
|
| 11 |
|
|
| 12 |
assert_equal(author.authorships.first.name_on_paper, "Yih-Farn R. Chen") |
|
| 13 |
assert_equal(author.authorships.count, 2) |
|
| 14 |
|
|
| 12 | 15 |
end |
| 13 | 16 |
|
| 14 | 17 |
end |
Also available in: Unified diff