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 / publication_test.rb @ 1372:a8832968d927

History | View | Annotate | Download (502 Bytes)

1
require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
2

    
3
class PublicationTest < ActiveSupport::TestCase
4
    self.fixture_path = File.dirname(__FILE__) + "/../fixtures/"
5

    
6
    fixtures :publications, :authorships
7

    
8
    # Replace this with your real tests.
9
    def test_truth
10
        assert true
11
    end
12

    
13
    def test_relationships
14
        # test authorships - publication relationship
15
        publication = Publication.find(1)
16

    
17
        assert publication.authorships.count == 4
18
    end
19

    
20
end