To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / plugins / redmine_bibliography / test / unit / author_test.rb @ 1373:95a6d8cecdb8

History | View | Annotate | Download (446 Bytes)

1
# author_test.rb
2

    
3
require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
4

    
5
class AuthorTest < ActiveSupport::TestCase
6
    self.fixture_path = File.dirname(__FILE__) + "/../fixtures/"
7
    fixtures :users, :authors, :authorships
8

    
9
    def test_relationships
10
        author = Author.find(1)
11

    
12
        assert_equal(author.authorships.first.name_on_paper, "Yih-Farn R. Chen")
13
        assert_equal(author.authorships.count, 2)
14

    
15
    end
16

    
17
end