Permalink
Browse files

Tweak ObjectDaddy so it's loaded into Rate when testing

  • Loading branch information...
1 parent e971b13 commit b20ebe587b6b219c2c7b88e586600136010db522 @edavis10 committed Apr 6, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 app/models/rate.rb
View
@@ -151,6 +151,9 @@ def self.with_common_lockfile(force = false, &block)
end
if Rails.env.test?
+ require 'object_daddy'
+ include ObjectDaddy
+
public
generator_for :date_in_effect => Date.today
end

0 comments on commit b20ebe5

Please sign in to comment.