Skip to content

Commit 7a6ffd9

Browse files
adding a failing test
This is a test for #10188
1 parent b416fee commit 7a6ffd9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

grails-core/src/test/groovy/org/grails/config/PropertySourcesConfigSpec.groovy

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ package org.grails.config
22

33
import org.springframework.core.env.MapPropertySource
44
import org.springframework.core.env.MutablePropertySources
5+
import spock.lang.Ignore
6+
import spock.lang.Issue
57
import 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
}

0 commit comments

Comments
 (0)