Permalink
Browse files

reset Utilities in spec-live

  • Loading branch information...
1 parent e0538d7 commit 39a4c3ecfa730786af70e058f5daca17d7fdb1cc Brian D. Burns committed Feb 22, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 spec-live/spec_helper.rb
View
2 spec-live/spec_helper.rb
@@ -43,6 +43,7 @@ module ExampleHelpers
# in models.rb, then returns the Model for the given trigger.
def h_set_trigger(trigger)
Backup::SpecLive.load_models = true
+ Backup::Utilities.send(:reset!)
Backup::Logger.clear!
Backup::Model.all.clear
Backup::Config.load_config!
@@ -76,6 +77,7 @@ def h_set_trigger(trigger)
#
def h_set_single_model(&block)
Backup::SpecLive.load_models = false
+ Backup::Utilities.send(:reset!)
Backup::Logger.clear!
Backup::Model.all.clear
Backup::Config.load_config!

0 comments on commit 39a4c3e

Please sign in to comment.