Forum: Ruby on Rails Another test problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Chris C. (Guest)
on 2006-03-26 13:49
I hope there's not a typo this time ;-)

With self.use_instantiated_fixtures  = false in test_helper.rb (default
since 1.0 version) I want on demand instances.

This
@publish_articles['article_linux']
return a Fixture object (breakpointed, I see the data of fixture
fields). So I assume that publish_articles is well populated with
fixture datas

This
assert_equal publish_articles(:article_linux).title, @article.title
produce an error because publish_articles(:article_linux) evaluate to
nil

Why ? I don't see the reason.
This topic is locked and can not be replied to.