Skip to content

Commit

Permalink
make sure controller.modelAndView.viewName is set when calling render
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Brown committed Jan 26, 2010
1 parent 9803507 commit e77419e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions grails/src/test/grails/test/MockUtilsTests.groovy
Expand Up @@ -786,6 +786,7 @@ class MockUtilsTests extends GroovyTestCase {

assertEquals "list", controller.renderArgs["view"]
assertEquals( [count: 101], controller.renderArgs["model"] )
assertEquals 'list', controller.modelAndView.viewName

// "view" and "text" arguments are mutually exclusive.
shouldFail(AssertionError) {
Expand Down

0 comments on commit e77419e

Please sign in to comment.