Mercurial > hg > soundsoftware-site
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/plugins/redmine_bibliography/test/unit/author_test.rb Wed Jan 15 09:59:14 2014 +0000 @@ -0,0 +1,17 @@ +# author_test.rb + +require File.expand_path(File.dirname(__FILE__) + '/../test_helper') + +class AuthorTest < ActiveSupport::TestCase + self.fixture_path = File.dirname(__FILE__) + "/../fixtures/" + fixtures :users, :authors, :authorships + + def test_relationships + author = Author.find(1) + + assert_equal(author.authorships.first.name_on_paper, "Yih-Farn R. Chen") + assert_equal(author.authorships.count, 2) + + end + +end