test/functional/configatron.rb in configatron-4.3.0 vs test/functional/configatron.rb in configatron-4.4.0
- old
+ new
@@ -46,9 +46,17 @@
end
assert_equal('original', @kernel.foo.bar)
end
+ it 'restores locking state' do
+ @kernel.lock!
+ @kernel.temp do
+ @kernel.unlock!
+ end
+ assert(@kernel.locked?)
+ end
+
describe 'start/end' do
it 'allows for temporary setting of values' do
assert_equal('A', @kernel.a)
assert_equal('B', @kernel.b)
@kernel.temp_start