summaryrefslogtreecommitdiff
path: root/features/support
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-07-28 11:05:46 +0200
committerAzul <azul@leap.se>2014-07-31 10:03:38 +0200
commit1092bbc337edc5973fad63bea559ecc2a3a5b896 (patch)
tree7571646015a24623e439c4af3f067fe469f9c406 /features/support
parent297b42cd7557a7508cdbf091163da48bbd52a79a (diff)
features for anonymous use and service endpoint
Also moved the location of the config files into a configuration setting.
Diffstat (limited to 'features/support')
-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