Skip to content

Commit

Permalink
attempted fix for failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher committed Feb 11, 2011
1 parent 3175092 commit c92cf03
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/grails/test/GrailsUnitTestCaseTests.groovy
Expand Up @@ -19,6 +19,7 @@ import grails.converters.XML

import junit.framework.AssertionFailedError

import org.codehaus.groovy.grails.commons.ApplicationHolder;
import org.codehaus.groovy.grails.commons.ConfigurationHolder
import org.codehaus.groovy.grails.plugins.GrailsPlugin
import org.codehaus.groovy.grails.plugins.MockGrailsPluginManager
Expand All @@ -30,6 +31,11 @@ import org.codehaus.groovy.grails.plugins.codecs.HTMLCodec
*/
class GrailsUnitTestCaseTests extends GroovyTestCase {

@Override
protected void tearDown() throws Exception {
ApplicationHolder.setApplication null
super.tearDown();
}
void testMockConfig() {
def testCase = new TestUnitTestCase()
testCase.setUp()
Expand Down

0 comments on commit c92cf03

Please sign in to comment.