Hi,

I'm converting some AR classes into modules and moving their
attributes to whatever AR classes formerly held the association.

I'm finding it hard to test these modules.

I think I want to use a tableless AR model in my module tests. I just
define one of these -- with the attributes the module needs -- in the
test file and use it in the test. This works, but not for all AR
methods. In particular, I run into errors when I invoke certain AR
methods that seem to require the presence of a table.

So, simply put, how do I get a fully functional AR model for use in
testing, without an accompanying migration?

Any thoughts?

Thanks,

Lille

-- 
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