Luis Romero wrote in post #962011:
> Hello everyone,
>
> I am having a hard time testing that my has_many and belongs_to
> relationships are mapped to the correct DB columns. Does anyone have any
> suggestions or good strategies for testing that these relationships are
> properly mapped throughout an application?

Rails is well tested, so don't test it further.  Instead, make sure 
you've called has_many and belongs_to correctly.  The easiest way to do 
that is by using reflect_on_association.

Best,
-- 
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

Sent from my iPhone

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to