Skip to content

Commit 135be7f

Browse files
committed
Explain fixture_paths=
1 parent 1380d42 commit 135be7f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/test_helper.rb

+5-2
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,17 @@
183183
module ActiveSupport
184184
class TestCase
185185
include ActiveRecord::TestFixtures
186+
187+
# `fixture_path=` was deprecated in favor of
188+
# `fixture_paths=` in Rails 7.1, removed in Rails 7.2.
186189
if respond_to?(:fixture_paths=)
187190
self.fixture_paths = [File.dirname(__FILE__) + "/fixtures"]
188191
else
189192
self.fixture_path = File.dirname(__FILE__) + "/fixtures"
190193
end
191194

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

0 commit comments

Comments
 (0)