-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from grails/matrei/add-download-test
- Add a test for working download support - Add the functional tests to the CI pipeline
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...-container-test-app/src/integration-test/groovy/org/demo/spock/DownloadSupportSpec.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.demo.spock | ||
|
||
import grails.plugin.geb.ContainerGebSpec | ||
import grails.testing.mixin.integration.Integration | ||
|
||
@Integration | ||
class DownloadSupportSpec extends ContainerGebSpec { | ||
|
||
void 'should be able to use download methods'() { | ||
when: | ||
go '/' | ||
|
||
then: | ||
downloadText().contains('Welcome to Grails') | ||
} | ||
} |