Skip to content

Commit 2a49d25

Browse files
committed
Explain fixture_paths=
1 parent 1380d42 commit 2a49d25

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/test_helper.rb

+4-2
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,16 @@
183183
module ActiveSupport
184184
class TestCase
185185
include ActiveRecord::TestFixtures
186+
# `fixture_path=` was deprecated in favor of
187+
# `fixture_paths=` in Rails 7.1, removed in Rails 7.2.
186188
if respond_to?(:fixture_paths=)
187189
self.fixture_paths = [File.dirname(__FILE__) + "/fixtures"]
188190
else
189191
self.fixture_path = File.dirname(__FILE__) + "/fixtures"
190192
end
191193

192-
# use_transactional_fixtures= is deprecated and will be removed from Rails 5.1
193-
# (use use_transactional_tests= instead)
194+
# `use_transactional_fixtures=` was deprecated in favor of
195+
# `use_transactional_tests=` in Rails 5.0, removed in Rails 5.1.
194196
if respond_to?(:use_transactional_tests=)
195197
self.use_transactional_tests = false
196198
else

0 commit comments

Comments
 (0)