<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/explicit-query-and-body-kwargs-for-integration-tests-and-more--0vvvavv45" -->

---
title: Explicit query: and body: kwargs for integration tests...
description: This week in Rails covers several notable changes: new explicit `query:` and `body:` kwargs for integration test helpers resolve ambiguity with GET+JSON...
canonical: https://daily.dev/posts/explicit-query-and-body-kwargs-for-integration-tests-and-more--0vvvavv45
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Explicit query: and body: kwargs for integration tests and more! | daily.dev
og:description: This week in Rails covers several notable changes: new explicit `query:` and `body:` kwargs for integration test helpers resolve ambiguity with GET+JSON...
og:url: https://daily.dev/posts/explicit-query-and-body-kwargs-for-integration-tests-and-more--0vvvavv45
og:image: https://api.daily.dev/og/posts/0vVVAVv45.png
og:image:alt: Explicit query: and body: kwargs for integration tests and more!
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Explicit query: and body: kwargs for integration tests and more!

**[Rails](https://daily.dev/sources/rails)** · 2 min read · 0 upvotes · 0 comments

## Summary

This week in Rails covers several notable changes: new explicit `query:` and `body:` kwargs for integration test helpers resolve ambiguity with GET+JSON requests in API-only apps; two new predicate methods `request.safe_method?` and `request.unsafe_method?` are added to ActionDispatch::Request per RFC 9110; Action Cable's origin check is updated to respect `X-Forwarded-Host` for correct behavior behind reverse proxies; and a rewrite of the Layouts and Rendering guide is open for community review.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://rubyonrails.org/2026/4/10/this-week-in-rails>

## Similar posts on daily.dev

- [Agents on Rails, query method and more](https://daily.dev/posts/agents-on-rails-query-method-and-more-qvbubxxei) · This Week in Rails · 0 upvotes · 0 comments
- [Query command for database queries and more](https://daily.dev/posts/query-command-for-database-queries-and-more-i5swkhhcu) · This Week in Rails · 0 upvotes · 0 comments
- [IETF Publishes RFC 10008, Adding the QUERY Method for Safe Requests With a Body](https://daily.dev/posts/ietf-publishes-rfc-10008-adding-the-query-method-for-safe-requests-with-a-body-db9cthykm) · InfoQ · 16 upvotes · 0 comments
- [JSON schema cache, herb:check, and more\!](https://daily.dev/posts/json-schema-cache-herb-check-and-more--tyihj9oqu) · Rails · 1 upvotes · 0 comments
- [How Rails Builds \`params\` Before Your Action Runs](https://daily.dev/posts/how-rails-builds-params-before-your-action-runs-dli8lx1xl) · Ruby Flow · 2 upvotes · 0 comments

---

Tags: [#testing](https://daily.dev/tags/testing), [#ruby](https://daily.dev/tags/ruby), [#rails](https://daily.dev/tags/rails)

[View this post on daily.dev](https://daily.dev/posts/explicit-query-and-body-kwargs-for-integration-tests-and-more--0vvvavv45)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Explicit query: and body: kwargs for integration tests and more!","url":"https://daily.dev/posts/explicit-query-and-body-kwargs-for-integration-tests-and-more--0vvvavv45","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/explicit-query-and-body-kwargs-for-integration-tests-and-more--0vvvavv45"},"datePublished":"2026-04-10T11:55:31.152Z","dateModified":"2026-04-10T11:55:48.600Z","description":"This week in Rails covers several notable changes: new explicit `query:` and `body:` kwargs for integration test helpers resolve ambiguity with GET+JSON...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8e4f5a3c3e5361719ef48f4eb467a7f8?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8e4f5a3c3e5361719ef48f4eb467a7f8?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Rails","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Rails","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/d44501fa43a2441a9e27a08367cdfa52","url":"https://daily.dev/sources/rails"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/explicit-query-and-body-kwargs-for-integration-tests-and-more--0vvvavv45","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"testing,ruby,rails","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Rails","item":"https://daily.dev/sources/rails"},{"@type":"ListItem","position":3,"name":"Explicit query: and body: kwargs for integration tests and more!"}]}
```

