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

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

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

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


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs