In the documentation regarding Fixtures ( http://api.rubyonrails.org/classes/Fixtures.html ), they provide the following example of using label references for associations:
#
So, following their example, I have a User model that has has_one: profile, a Profile model that belongs to user_ and tried to set up the lights for their example:
#
(Note: since my association is one-way, the user device does not have the association "profile: reginalds_profile" - this results in an error because the SQL table does not have the profile_id attribute.)
The problem is that in my unit tests everything seems to load correctly, but users (: reginald) .profile are always null. What am I missing?
ruby-on-rails unit-testing fixtures
Mikej
source share