Tweak ObjectDaddy so it's loaded into Rate when testing
This commit is contained in:
1 parent
e971b13ee9
commit
b20ebe587b
1 file changed
+3
@@ -151,6 +151,9 @@ class Rate < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
if Rails.env.test?
|
if Rails.env.test?
|
||||||
|
require 'object_daddy'
|
||||||
|
include ObjectDaddy
|
||||||
|
|
||||||
public
|
public
|
||||||
generator_for :date_in_effect => Date.today
|
generator_for :date_in_effect => Date.today
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user