---
title: "rack-test 2.0.0 Breaking Changes on RubyGems | Since.dev"
description: "What each rack-test release removed, renamed or changed: 16 breaking changes in 4 versions on RubyGems, each with its source."
canonical_url: https://since.dev/packages/gem/rack-test
last_updated: 2026-12-04
---

# rack-test breaking changes

rack-test 2.0.0 (June 24, 2022) is its newest release with breaking changes, 10 of them. The first: Removed Rack.Test.Methods.\_current_session_names. Every breaking API change we have recorded in rack-test on RubyGems: 16 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.3.0`. [Source repository](https://github.com/rack/rack-test)

Its 0.8.0 release requires Ruby 2.2.2 or later. [Ruby end of life dates](https://since.dev/calendar/ruby.md).

- From [1.0.0](#v-1-0-0) to [2.0.0](#v-2-0-0): 10 breaking changes in 1 version.
- From [0.7.0](#v-0-7-0) to [2.0.0](#v-2-0-0): 12 breaking changes in 3 versions.

## rack-test 2.0.0 breaking changes

rack-test 2.0.0, released June 24, 2022: 10 breaking changes.

- **Removed** `Rack.Test.Methods._current_session_names`  

Rack::Test::Methods#\_current_session_names has been removed. [github.com](https://github.com/rack/rack-test/blob/v2.0.0/History.md)
- **Removed** `Rack.Test.Methods.build_rack_mock_session`  

Rack::Test::Methods no longer defines build_rack_mock_session; override build_rack_test_session instead. [github.com](https://github.com/rack/rack-test/blob/v2.0.0/History.md)
- **Removed** `Rack.Test.Methods.METHODS`  

Rack::Test::Methods::METHODS is no longer defined and code referencing it will fail. [github.com](https://github.com/rack/rack-test/blob/v2.0.0/History.md)
- **Renamed** `Rack.MockSession`  

Rack::MockSession was combined into Rack::Test::Session and remains only as an alias; use Rack::Test::Session. [github.com](https://github.com/rack/rack-test/blob/v2.0.0/History.md)
- **Behavior changed**  

Frozen literal strings are used internally, so code that mutates static strings returned by rack-test may break. [github.com](https://github.com/rack/rack-test/blob/v2.0.0/History.md)
- **Behavior changed**  

Headers used or accessed by rack-test are now lowercase for Rack 3 compliance, which may affect code that checks header names. [github.com](https://github.com/rack/rack-test/blob/v2.0.0/History.md)
- **Behavior changed** `Rack.Test.Cookie`  

Methods previously protected in Rack::Test::Cookie are now private and cannot be called from outside. [github.com](https://github.com/rack/rack-test/blob/v2.0.0/History.md)
- **Behavior changed** `Rack.Test.CookieJar`  

Methods previously protected in Rack::Test::CookieJar are now private and cannot be called from outside. [github.com](https://github.com/rack/rack-test/blob/v2.0.0/History.md)
- **Behavior changed** `Rack.Test.Utils`  

Only build_nested_query and build_multipart remain public on Rack::Test::Utils; other module methods are now private. [github.com](https://github.com/rack/rack-test/blob/v2.0.0/History.md)
- **Behavior changed** `Rack.Test.Utils.build_primitive_part`  

Calling build_primitive_part with array values no longer works; pass array values through another path. [github.com](https://github.com/rack/rack-test/blob/v2.0.0/History.md)

## rack-test 1.0.0 breaking changes

rack-test 1.0.0, released March 27, 2018: 1 breaking change.

- **Behavior changed**  

Non-GET requests now always set the CONTENT_TYPE header, which can change requests that previously omitted it. [github.com](https://github.com/rack/rack-test/releases/tag/v1.0.0)

## rack-test 0.8.0 breaking changes

rack-test 0.8.0, released November 20, 2017: 1 breaking change.

- **Behavior changed**  

The gem sets a required_ruby_version of >= 2.2.2, so older Ruby versions can no longer install or use it. Users on older Ruby must upgrade Ruby. [github.com](https://github.com/rack/rack-test/releases/tag/v0.8.0)

## rack-test 0.7.0 breaking changes

rack-test 0.7.0, released July 10, 2017: 4 breaking changes.

- **Behavior changed**  

Requests with empty params no longer get a trailing ampersand in the query string. Code that parses or matches the exact query string may need updating. [github.com](https://github.com/rack/rack-test/releases/tag/v0.7.0)
- **Behavior changed**  

DELETE requests no longer send a Content-Type header. Code that depends on that header being present on DELETE requests must set it explicitly. [github.com](https://github.com/rack/rack-test/releases/tag/v0.7.0)
- **Behavior changed**  

Following an HTTP 307 redirect now resends the original request method and parameters. Code that expected the redirect to be followed as a GET may behave differently. [github.com](https://github.com/rack/rack-test/releases/tag/v0.7.0)
- **Behavior changed**  

Setting the environment to enable SSL now also sets the request scheme. Code that relied on requests staying non-SSL under that setting will see different behavior. [github.com](https://github.com/rack/rack-test/releases/tag/v0.7.0)

## Related packages

- [rack-cache](https://since.dev/packages/gem/rack-cache.md)
- [rack-contrib](https://since.dev/packages/gem/rack-contrib.md)
- [rack-session](https://since.dev/packages/gem/rack-session.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
