Skip to content

Commit

Permalink
Merge pull request #6 from grails-profiles/3.3.1-testing-support-temp…
Browse files Browse the repository at this point in the history
…lates

Testing support templates
  • Loading branch information
jameskleeh authored May 9, 2017
2 parents 827beca + 7b592b8 commit 6a7e74d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
3 changes: 2 additions & 1 deletion profile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ dependencies:
- "org.grails.plugins:scaffolding"
testCompile:
- "org.grails:grails-plugin-testing"
- "org.grails.plugins:geb"
- "org.grails.plugins:geb"
- "org.grails:grails-web-testing-support"
testRuntime:
- 'org.seleniumhq.selenium:selenium-htmlunit-driver:2.47.1'
- 'net.sourceforge.htmlunit:htmlunit:2.18'
Expand Down
8 changes: 2 additions & 6 deletions templates/testing/Controller.groovy
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
@artifact.package@
import grails.test.mixin.TestFor
import grails.testing.web.controllers.ControllerUnitTest
import spock.lang.Specification

/**
* See the API for {@link grails.test.mixin.web.ControllerUnitTestMixin} for usage instructions
*/
@TestFor(@artifact.name@Controller)
class @artifact.name@ControllerSpec extends Specification {
class @artifact.name@ControllerSpec extends Specification implements ControllerUnitTest<@artifact.name@Controller>{

def setup() {
}
Expand Down
8 changes: 2 additions & 6 deletions templates/testing/TagLib.groovy
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
@artifact.package@
import grails.test.mixin.TestFor
import grails.testing.web.taglib.TagLibUnitTest
import spock.lang.Specification

/**
* See the API for {@link grails.test.mixin.web.GroovyPageUnitTestMixin} for usage instructions
*/
@TestFor(@artifact.name@TagLib)
class @artifact.name@TagLibSpec extends Specification {
class @artifact.name@TagLibSpec extends Specification implements TagLibUnitTest<@artifact.name@TagLib>{

def setup() {
}
Expand Down

0 comments on commit 6a7e74d

Please sign in to comment.