Skip to content

Commit

Permalink
Caching the config should actually cache the config
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Knowles authored and brynary committed Nov 19, 2008
1 parent 5ee4357 commit 95604d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/spec_helper.rb
Expand Up @@ -18,11 +18,11 @@

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
Expand Down

1 comment on commit 95604d6

@gaffo
Copy link
Collaborator

@gaffo gaffo commented on 95604d6 Nov 19, 2008

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Man, how’d I miss that one?

Please sign in to comment.