OSDN Git Service
(root)
/
redminele
/
redmine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f9d3f8
)
Restore settings even if a test failure occurs.
author
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Sun, 27 Mar 2011 15:41:05 +0000
(15:41 +0000)
committer
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Sun, 27 Mar 2011 15:41:05 +0000
(15:41 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5227
e93f8b46
-1217-0410-a6f0-
8f06a7374b81
test/test_helper.rb
patch
|
blob
|
history
diff --git
a/test/test_helper.rb
b/test/test_helper.rb
index
ea47670
..
e8474de
100644
(file)
--- a/
test/test_helper.rb
+++ b/
test/test_helper.rb
@@
-87,6
+87,7
@@
class ActiveSupport::TestCase
saved_settings = options.keys.inject({}) {|h, k| h[k] = Setting[k].dup; h}
options.each {|k, v| Setting[k] = v}
yield
+ ensure
saved_settings.each {|k, v| Setting[k] = v}
end