[Rails] Re: RSpec Test: has_many and belongs_to conflicts
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
marnen@marnen.org
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home