We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 201a17b commit 73e2121Copy full SHA for 73e2121
test/unit/au/org/ala/biocollect/merit/HomeControllerSpec.groovy
@@ -51,5 +51,18 @@ class HomeControllerSpec extends Specification {
51
response.forwardedUrl == '/aController/anAction'
52
}
53
54
+ def "optional project content must have bushfireCategores and industries facet" (){
55
+ given:
56
+ HubSettings settings = new HubSettings()
57
+ SettingService.setHubConfig(settings)
58
+
59
+ when:
60
+ def model = controller.index()
61
62
+ then:
63
+ HubSettings.OPTIONAL_PROJECT_CONTENT?.find{it == 'bushfireCategories'}
64
+ HubSettings.OPTIONAL_PROJECT_CONTENT?.find{it == 'industries'}
65
+ model.containsKey('hubConfig')
66
+ }
67
68
0 commit comments