diff options
author | azul <azul@leap.se> | 2014-07-21 10:36:22 +0200 |
---|---|---|
committer | azul <azul@leap.se> | 2014-07-21 10:36:22 +0200 |
commit | 791033d4a3021cc0a476a514667b17a6d519aa89 (patch) | |
tree | 650d0dff3c8f4ee77efdd237087df7c10b60cf8c /features/support | |
parent | bbd41c9bfd2cb88a88d7436dd58a8b46a5d10cf1 (diff) | |
parent | 11d1efaef622335fe6d45917ce0b50a02e4a24a1 (diff) |
Merge pull request #181 from azul/feature/allow_anonymous_config_access
Allow fetching configs if anonymous EIP access is allowed
Diffstat (limited to 'features/support')
-rw-r--r-- | features/support/hooks.rb | 6 |
1 files changed, 6 insertions, 0 deletions
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? |