# Userstamp plugin doesn't load in "test" environment - y not?

**URL:** <https://www.ruby-forum.com/t/userstamp-plugin-doesnt-load-in-test-environment-y-not/177606>\
**Category:** Rails\
**Created:** [October 20, 2009, 10:09pm UTC](https://www.ruby-forum.com/t/userstamp-plugin-doesnt-load-in-test-environment-y-not/177606 "2009-10-20T22:09:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [October 20, 2009, 10:09pm UTC](https://www.ruby-forum.com/t/userstamp-plugin-doesnt-load-in-test-environment-y-not/177606/1 "2009-10-20T22:09:08Z")

</div>

I’m working on an app. with the userstamp plugin in it (from 2 - 3 years  
back).

In the init.rb file, there’s this:

ActiveRecord::Base.send(:include, ActiveRecord::Userstamp) unless  
RAILS\_ENV == ‘test’

This causes certain tests to fail since created\_by is a required  
attribute.

Does anyone know the idea behind Userstamp not loading in the test  
environment. I’m just curious.

Thanks,  
Wes
