File tree Expand file tree Collapse file tree 3 files changed +6
-23
lines changed Expand file tree Collapse file tree 3 files changed +6
-23
lines changed Original file line number Diff line number Diff line change
1
+ * Remove deprecated ` TestFixtures.fixture_path ` .
2
+
3
+ * Rafael Mendonça França*
4
+
1
5
* Remove deprecated behavior to support referring to a singular association by its plural name.
2
6
3
7
* Rafael Mendonça França*
Original file line number Diff line number Diff line change @@ -53,20 +53,6 @@ def set_fixture_class(class_names = {})
53
53
self . fixture_class_names = fixture_class_names . merge ( class_names . stringify_keys )
54
54
end
55
55
56
- def fixture_path # :nodoc:
57
- ActiveRecord . deprecator . warn ( <<~WARNING )
58
- TestFixtures.fixture_path is deprecated and will be removed in Rails 7.2. Use .fixture_paths instead.
59
- If multiple fixture paths have been configured with .fixture_paths, then .fixture_path will just return
60
- the first path.
61
- WARNING
62
- fixture_paths . first
63
- end
64
-
65
- def fixture_path = ( path ) # :nodoc:
66
- ActiveRecord . deprecator . warn ( "TestFixtures.fixture_path= is deprecated and will be removed in Rails 7.2. Use .fixture_paths= instead." )
67
- self . fixture_paths = Array ( path )
68
- end
69
-
70
56
def fixtures ( *fixture_set_names )
71
57
if fixture_set_names . first == :all
72
58
raise StandardError , "No fixture path found. Please set `#{ self } .fixture_paths`." if fixture_paths . blank?
@@ -111,15 +97,6 @@ def uses_transaction?(method)
111
97
end
112
98
113
99
private
114
- def fixture_path
115
- ActiveRecord . deprecator . warn ( <<~WARNING )
116
- TestFixtures#fixture_path is deprecated and will be removed in Rails 7.2. Use #fixture_paths instead.
117
- If multiple fixture paths have been configured with #fixture_paths, then #fixture_path will just return
118
- the first path.
119
- WARNING
120
- fixture_paths . first
121
- end
122
-
123
100
def run_in_transaction?
124
101
use_transactional_tests &&
125
102
!self . class . uses_transaction? ( name )
Original file line number Diff line number Diff line change @@ -136,6 +136,8 @@ Please refer to the [Changelog][active-record] for detailed changes.
136
136
137
137
* Remove deprecated behavior to support referring to a singular association by its plural name.
138
138
139
+ * Remove deprecated ` TestFixtures.fixture_path ` .
140
+
139
141
### Deprecations
140
142
141
143
* Deprecate ` Rails.application.config.active_record.allow_deprecated_singular_associations_name `
You can’t perform that action at this time.
0 commit comments