Permalink
Browse files

initialize any_instantiation class variable

some things may use AR before reset_any_instantiation is called,
causing instantiation to raise

test plan: n/a

Change-Id: Iee4bc45ad2c14540f8a9696879ff8f1a5f879636
Reviewed-on: https://gerrit.instructure.com/7494
Reviewed-by: Brian Palmer <brianp@instructure.com>
Tested-by: Hudson <hudson@instructure.com>
  • Loading branch information...
1 parent d338263 commit a5e32b9ee4ec786e86beee05cd1a7b2403b8a957 @ccutrer ccutrer committed Dec 14, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 spec/mocha_extensions.rb
View
@@ -28,6 +28,7 @@ def evaluate
# this AR instance is instantiated, through find or whatever
# the record must be saved before calling any_instantiation, so that it has an id
class ActiveRecord::Base
+ @@any_instantiation = {}
def self.reset_any_instantiation!
@@any_instantiation = {}

0 comments on commit a5e32b9

Please sign in to comment.