Forum: Ruby on Rails Where to put test/mocks/development?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Jeff C. (Guest)
on 2009-03-18 21:09
(Received via mailing list)
According to the Rails 2.1 changeset, creating mock objects for use in
test and development environments is 'antiquated'.

If that's so, where should you put them?

I'm upgrading an app from 2.0.5 to 2.1.0 and we have mocked some
objects which make external calls.  The mocks for those objects live
in 'test/mocks/development' and 'test/mocks/test'.

Where should they go, if not there?

I find that those directories don't get loaded when I use gem
dependencies with "config.gem" in my environment.rb.  If I remove the
config.gem statements, they DO get loaded.

I'd love to use the dependencies, but how do I load my mocks?

This topic is locked and can not be replied to.