lib/fulmar/domain/service/config_test_service.rb in fulmar-2.1.2 vs lib/fulmar/domain/service/config_test_service.rb in fulmar-2.2.0
- old
+ new
@@ -12,14 +12,14 @@
@config = config
@tests = {}
end
def target_test(name, &block)
- @tests[name] = Proc.new do
+ @tests[name] = proc do
results = []
@config.each do |env, target, _data|
@config.set env, target
- result = block.call(@config)
+ result = yield(@config)
if result
result[:message] = "in [#{env}:#{target}]: #{result[:message]}"
results << result
end
end