Skip to content

Commit 004ef13

Browse files
authored
Stop printing a warning about config.cache_classes being set to false (#598)
The initial warning was from 16 years ago from a bug report that no longer exists, for Rails 2 and is no longer relevant.
1 parent b4ab57e commit 004ef13

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
This file is intended to be modified using the [`changelog`](https://github.com/cucumber/changelog) command-line tool.
99

1010
## [Unreleased]
11+
### Removed
12+
- Stop printing a warning about `config.cache_classes` being set to `false`
1113

1214
## [4.0.0] - 2025-09-01
1315
### Changed

lib/cucumber/rails.rb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,6 @@
1212
require File.expand_path("#{ENV.fetch('RAILS_ROOT')}/config/environment")
1313
require 'cucumber/rails/action_dispatch'
1414
require 'rails/test_help'
15-
16-
unless Rails.application.config.cache_classes || defined?(Spring)
17-
warn <<~MESSAGE
18-
WARNING: You have set Rails' config.cache_classes to false (Spring needs cache_classes set to false).
19-
This is known to cause problems with database transactions.
20-
21-
Set config.cache_classes to true if you want to use transactions.
22-
MESSAGE
23-
end
24-
2515
require 'cucumber/rails/world'
2616
require 'cucumber/rails/hooks'
2717
require 'cucumber/rails/capybara'

0 commit comments

Comments
 (0)