blob: 65eb7bcb149ac3fa9acda596e22cec40dbdbe9e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
module WithConfigHelper
extend ActiveSupport::Concern
def with_config(options)
old_config = APP_CONFIG.dup
APP_CONFIG.merge! options
yield
ensure
APP_CONFIG.replace old_config
end
end
class ActiveSupport::TestCase
include WithConfigHelper
end
|