Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

reset Utilities in spec-live

  • Loading branch information...
commit 39a4c3ecfa730786af70e058f5daca17d7fdb1cc 1 parent e0538d7
Brian D. Burns authored
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!
Please sign in to comment.
Something went wrong with that request. Please try again.