Skip to content

Commit

Permalink
GRAILS-11202 - this is one way to deal with the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Scott Brown committed Mar 13, 2014
1 parent 4c6c149 commit 48bdff7
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@ package org.codehaus.groovy.grails.web.controllers

import grails.artefact.Artefact
import grails.test.mixin.TestFor
import spock.lang.Ignore
import spock.lang.Issue
import spock.lang.Specification

@TestFor(SubController)
class ControllerMetaProgrammingSpec extends Specification {

@Issue('GRAILS-11202')
@Ignore
void 'Test runtime metaprogramming a controller helper method'() {
given:
def setupSpec() {
BaseController.metaClass.someHelperMethod = {->
delegate.metaprogrammedMethodCalled = true
}

}

@Issue('GRAILS-11202')
void 'Test runtime metaprogramming a controller helper method'() {
when:
controller.index()

Expand Down

0 comments on commit 48bdff7

Please sign in to comment.