Caching the config should actually cache the config

This commit is contained in:
Josh Knowles 2008-11-17 00:43:08 -05:00 committed by Bryan Helmkamp
parent 5ee4357cd6
commit 95604d6320

View File

@ -18,11 +18,11 @@ end
module Webrat
@@previous_config = nil
def self.cache_config_for_test
@@configuration = Webrat.configuration
@@previous_config = Webrat.configuration.clone
end
def self.reset_for_test
@@configuration = @@previous_config if @@previous_config
end