Mercurial > hg > soundsoftware-site
comparison plugins/redmine_bibliography/test/unit/author_test.rb @ 1484:51364c0cd58f redmine-2.4-integration
Merge from live branch. Still need to merge manually in files overridden by plugins.
author | Chris Cannam |
---|---|
date | Wed, 15 Jan 2014 09:59:14 +0000 |
parents | a8832968d927 |
children |
comparison
equal
deleted
inserted
replaced
1464:261b3d9a4903 | 1484:51364c0cd58f |
---|---|
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 |