Skip to content

Commit

Permalink
mock other taglib to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sdelamo committed Nov 30, 2018
1 parent 9ec49b3 commit c9a2881
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@ package org.grails.web.pages
import grails.artefact.Artefact
import grails.test.AbstractGrailsEnvChangingSpec
import grails.testing.web.taglib.TagLibUnitTest
import spock.lang.Unroll

class TagLibMethodMissingSpec extends AbstractGrailsEnvChangingSpec implements TagLibUnitTest<TagLibMethodMissingBTagLib> {
class TagLibMethodMissingSpec extends AbstractGrailsEnvChangingSpec implements TagLibUnitTest<TagLibMethodMissingTagLib> {

def setup() {
mockArtefact(TagLibMethodMissingBTagLib)
}

@Unroll("template #template / expected content: #expectedContent / env: #grailsEnv")
def "Test tag library method missing handling"(template, expectedContent, grailsEnv) {
when:'We call a tag that invokes an existing tag in other TagLib'
changeGrailsEnv(grailsEnv)
Expand Down

0 comments on commit c9a2881

Please sign in to comment.