From 11d1efaef622335fe6d45917ce0b50a02e4a24a1 Mon Sep 17 00:00:00 2001 From: Azul Date: Fri, 18 Jul 2014 12:22:56 +0200 Subject: Allow fetching configs if anonymous EIP access is allowed --- features/support/hooks.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'features/support/hooks.rb') diff --git a/features/support/hooks.rb b/features/support/hooks.rb index f11e602..f2e3b41 100644 --- a/features/support/hooks.rb +++ b/features/support/hooks.rb @@ -5,6 +5,12 @@ After '@tempfile' do end end +Around '@config' do |scenario, block| + old_config = APP_CONFIG.dup + block.call + APP_CONFIG.replace old_config +end + # store end of server log for failing scenarios After do |scenario| if scenario.failed? -- cgit v1.2.3