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?