Mercurial > hg > soundsoftware-site
view plugins/redmine_bibliography/test/unit/author_test.rb @ 1371:a8d468e143f7 bibliography_testing
Started adding a few real test cases.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Thu, 22 Aug 2013 11:44:31 +0100 |
parents | 0b169a5e3837 |
children | a8832968d927 |
line wrap: on
line source
# 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 author.authorships.first.name_on_paper == "Yih-Farn R. Chen" end end