# Where to put test/mocks/development?

**URL:** <https://www.ruby-forum.com/t/where-to-put-test-mocks-development/163266>\
**Category:** Rails\
**Created:** [March 18, 2009, 8:09pm UTC](https://www.ruby-forum.com/t/where-to-put-test-mocks-development/163266 "2009-03-18T20:09:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e19b73/32.png) [@jeff](https://www.ruby-forum.com/u/jeff)\
**Post date:** [March 18, 2009, 8:09pm UTC](https://www.ruby-forum.com/t/where-to-put-test-mocks-development/163266/1 "2009-03-18T20:09:32Z")

</div>

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?

Thanks,  
Isaac
