view plugins/redmine_bibliography/test/unit/author_test.rb @ 1628:9c5f8e24dadc live tip

Quieten this cron script
author Chris Cannam
date Tue, 25 Aug 2020 11:38:49 +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