Skip to content

Commit 73e2121

Browse files
author
sat01a
committed
Added test cases #1247
1 parent 201a17b commit 73e2121

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/unit/au/org/ala/biocollect/merit/HomeControllerSpec.groovy

+13
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,18 @@ class HomeControllerSpec extends Specification {
5151
response.forwardedUrl == '/aController/anAction'
5252
}
5353

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+
}
5467

5568
}

0 commit comments

Comments
 (0)