# contents of test/fixtures/authors --- xandr: id: 1 name: xandros # contents of test/unit/test_authors: require File.dirname(__FILE__) + '/../test_helper' class AuthorTest < Test::Unit::TestCase fixtures :authors def setup @xandr= @authors["xandr"] end # Replace this with your real tests. def test_truth # assert_kind_of Author, @authors["xandr"] # ===> also failure if I comment the line in setup assert_kind_of Author, @xandr end end