File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
grails-core/src/test/groovy/org/grails/config Expand file tree Collapse file tree 1 file changed +26
-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,28 @@ class PropertySourcesConfigSpec extends Specification {
4850
4951
5052 }
53+
54+ /*
55+
56+ We need to settle on whether the following is a bug or not.
57+ There are some tests in ConfigMapSpec that indirectly assert some
58+ behavior that I think would be inconsistent with making the following
59+ test pass.
60+
61+ */
62+ @Ignore
63+ @Issue (' grails/grails-core#10188' )
64+ void ' test replacing nested property values' () {
65+ given : ' a PropertySourcesConfig'
66+ def cfg = new PropertySourcesConfig ()
67+
68+ when : ' a nested property is assigned a value'
69+ cfg. foo. bar = [' one' : ' 1' ]
70+
71+ and : ' later is assigned a different value'
72+ cfg. foo. bar = [' two' : ' 2' ]
73+
74+ then : ' the second value is not merged with the first value'
75+ cfg. foo. bar == [' two' : ' 2' ]
76+ }
5177}
You can’t perform that action at this time.
0 commit comments