From 376b8e3574a8f2ebbdaa7308b13be62d2a8c1b11 Mon Sep 17 00:00:00 2001 From: benrhine Date: Tue, 5 Jun 2018 13:21:49 -0400 Subject: [PATCH] allowing for application.properties in HibernateSpec --- .../src/main/groovy/grails/test/hibernate/HibernateSpec.groovy | 1 + 1 file changed, 1 insertion(+) diff --git a/grails-plugin/src/main/groovy/grails/test/hibernate/HibernateSpec.groovy b/grails-plugin/src/main/groovy/grails/test/hibernate/HibernateSpec.groovy index 9ed42e07..266bd903 100644 --- a/grails-plugin/src/main/groovy/grails/test/hibernate/HibernateSpec.groovy +++ b/grails-plugin/src/main/groovy/grails/test/hibernate/HibernateSpec.groovy @@ -43,6 +43,7 @@ abstract class HibernateSpec extends Specification { MutablePropertySources propertySources = loader.propertySources loader.load resourceLoader.getResource("application.yml") loader.load resourceLoader.getResource("application.groovy") + loader.load resourceLoader.getResource("application.properties") propertySources.addFirst(new MapPropertySource("defaults", getConfiguration())) Config config = new PropertySourcesConfig(propertySources) List domainClasses = getDomainClasses()