From 1092bbc337edc5973fad63bea559ecc2a3a5b896 Mon Sep 17 00:00:00 2001 From: Azul Date: Mon, 28 Jul 2014 11:05:46 +0200 Subject: features for anonymous use and service endpoint Also moved the location of the config files into a configuration setting. --- features/support/hooks.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'features/support/hooks.rb') diff --git a/features/support/hooks.rb b/features/support/hooks.rb index f2e3b41..256e5d8 100644 --- a/features/support/hooks.rb +++ b/features/support/hooks.rb @@ -5,10 +5,8 @@ After '@tempfile' do end end -Around '@config' do |scenario, block| - old_config = APP_CONFIG.dup - block.call - APP_CONFIG.replace old_config +After '@config' do |scenario, block| + APP_CONFIG.replace @orig_config if @orig_config end # store end of server log for failing scenarios -- cgit v1.2.3