Mercurial > hg > soundsoftware-site
view plugins/redmine_bibliography/test/unit/author_test.rb @ 1391:8580d1d1150e luisf
Adding 2 new js scripts; added the code removed from the partials. Minor cleaning.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 25 Sep 2013 17:44:48 +0100 |
parents | a8832968d927 |
children |
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_equal(author.authorships.first.name_on_paper, "Yih-Farn R. Chen") assert_equal(author.authorships.count, 2) end end