File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
grails-core/src/test/groovy/org/grails/config Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ package org.grails.config
22
33import org.springframework.core.env.MapPropertySource
44import org.springframework.core.env.MutablePropertySources
5+ import spock.lang.Ignore
6+ import spock.lang.Issue
57import spock.lang.Specification
68
79/*
@@ -48,4 +50,20 @@ class PropertySourcesConfigSpec extends Specification {
4850
4951
5052 }
53+
54+ @Ignore
55+ @Issue (' grails/grails-core#10188' )
56+ void ' test replacing nested property values' () {
57+ given : ' a PropertySourcesConfig'
58+ def cfg = new PropertySourcesConfig ()
59+
60+ when : ' a nested property is assigned a value'
61+ cfg. foo. bar = [' one' : ' 1' ]
62+
63+ and : ' later is assigned a different value'
64+ cfg. foo. bar = [' two' : ' 2' ]
65+
66+ then : ' the second value is not merged with the first value'
67+ cfg. foo. bar == [' two' : ' 2' ]
68+ }
5169}
You can’t perform that action at this time.
0 commit comments