This is an automated email from the ASF dual-hosted git repository. matrei pushed a commit to branch feat/http-client-testing-support in repository https://gitbox.apache.org/repos/asf/grails-core.git
commit 2f19b03e0567f1105274f70dd98cd3cad1973ead Author: Mattias Reichel <[email protected]> AuthorDate: Thu Mar 5 16:23:32 2026 +0100 chore: typos --- grails-doc/src/en/guide/testing/integrationTesting.adoc | 2 +- .../groovy/com/demo/AdvancedCachingIntegrationSpec.groovy | 2 +- .../groovy/functional/tests/api/NamespacedBookSpec.groovy | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/grails-doc/src/en/guide/testing/integrationTesting.adoc b/grails-doc/src/en/guide/testing/integrationTesting.adoc index 8832d7de88..a3bde18a99 100644 --- a/grails-doc/src/en/guide/testing/integrationTesting.adoc +++ b/grails-doc/src/en/guide/testing/integrationTesting.adoc @@ -386,7 +386,7 @@ class DemoSpec extends Specification implements HttpClientSupport { given: def multipart = MultipartBody.builder() .addPart('description', 'test file') - .addPart('file', 'hello.txt', 'hello world'.bytes, 'text/plain') + .addPart('file', 'hello.txt', 'hello world', 'text/plain') .build() when: diff --git a/grails-test-examples/cache/src/integration-test/groovy/com/demo/AdvancedCachingIntegrationSpec.groovy b/grails-test-examples/cache/src/integration-test/groovy/com/demo/AdvancedCachingIntegrationSpec.groovy index e5edf12ad4..fca3d289fb 100644 --- a/grails-test-examples/cache/src/integration-test/groovy/com/demo/AdvancedCachingIntegrationSpec.groovy +++ b/grails-test-examples/cache/src/integration-test/groovy/com/demo/AdvancedCachingIntegrationSpec.groovy @@ -196,7 +196,7 @@ class AdvancedCachingIntegrationSpec extends Specification implements HttpClient when: "evicting all and fetching again" http('/advancedCaching/evictAllKeyCache') - def second = http('/advancedCaching/getDataByKey?key=anykey',) + def second = http('/advancedCaching/getDataByKey?key=anykey') def secondData = second.json().data then: "new data is generated after eviction" diff --git a/grails-test-examples/views-functional-tests/src/integration-test/groovy/functional/tests/api/NamespacedBookSpec.groovy b/grails-test-examples/views-functional-tests/src/integration-test/groovy/functional/tests/api/NamespacedBookSpec.groovy index fbd999d02c..978afc191b 100644 --- a/grails-test-examples/views-functional-tests/src/integration-test/groovy/functional/tests/api/NamespacedBookSpec.groovy +++ b/grails-test-examples/views-functional-tests/src/integration-test/groovy/functional/tests/api/NamespacedBookSpec.groovy @@ -75,14 +75,14 @@ class NamespacedBookSpec extends Specification implements HttpClientSupport { when: 'A request is sent to a controller with a namespace' def response = http('/api/book/testRender') - then: 'The responseonse is correct' + then: 'The response is correct' response.expectJson(200, 'Content-Type': 'application/json;charset=UTF-8', [ api: 'version 1.0 (Namespaced)', title: 'API - The Shining' ]) } - void 'test responseond(foo, view: ..) in controllers with namespaces works'() { + void 'test respond(foo, view: ..) in controllers with namespaces works'() { when: 'A request is sent to a controller with a namespace' def response = http('/api/book/testRespond')
