summaryrefslogtreecommitdiff
path: root/features/support/hooks.rb
diff options
context:
space:
mode:
Diffstat (limited to 'features/support/hooks.rb')
-rw-r--r--features/support/hooks.rb6
1 files changed, 2 insertions, 4 deletions
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