Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HandlingResult status code not set properly in DefaultRequestFixture when handler calls clientError() #749

Closed
deanriverson opened this issue Aug 11, 2015 · 1 comment
Assignees

Comments

@deanriverson
Copy link

The following test should pass but doesn't:

def "test clientError status code from request fixture"() {
    given:
    Handler h = { ctx ->
        ctx.clientError(404)
    }

    when:
    def result = GroovyRequestFixture.handle(h) {}

    then:
    result.clientError == 404
    result.status.code == 404
}
@deanriverson
Copy link
Author

@rhart rhart closed this as completed in 9709c04 Aug 11, 2015
@rhart rhart self-assigned this Aug 11, 2015
@rhart rhart added this to the release-1.0.0 milestone Aug 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants