Tweak ObjectDaddy so it's loaded into Rate when testing

This commit is contained in:
Eric Davis committed 2011-04-06 09:18:54 -07:00
1 parent e971b13ee9
commit b20ebe587b
1 file changed
+3
+3
View File
@@ -151,6 +151,9 @@ class Rate < ActiveRecord::Base
end
if Rails.env.test?
require 'object_daddy'
include ObjectDaddy
public
generator_for :date_in_effect => Date.today
end