Caching the config should actually cache the config
This commit is contained in:
parent
5ee4357cd6
commit
95604d6320
|
@ -18,11 +18,11 @@ end
|
||||||
|
|
||||||
module Webrat
|
module Webrat
|
||||||
@@previous_config = nil
|
@@previous_config = nil
|
||||||
|
|
||||||
def self.cache_config_for_test
|
def self.cache_config_for_test
|
||||||
@@configuration = Webrat.configuration
|
@@previous_config = Webrat.configuration.clone
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.reset_for_test
|
def self.reset_for_test
|
||||||
@@configuration = @@previous_config if @@previous_config
|
@@configuration = @@previous_config if @@previous_config
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue