File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,9 @@ def in_inferring_type_from_location_environment
173
173
174
174
group = RSpec . describe ( "Arbitrary Description" , :use_fixtures )
175
175
176
- expect ( group ) . to respond_to ( :fixture_path )
176
+ if ::Rails ::VERSION ::STRING <= "7.2.0"
177
+ expect ( group ) . to respond_to ( :fixture_path )
178
+ end
177
179
178
180
if ::Rails ::VERSION ::STRING >= "7.1.0"
179
181
with_isolated_stderr { expect ( group . fixture_path ) . to eq ( "custom/path" ) }
Original file line number Diff line number Diff line change @@ -7,9 +7,11 @@ module RSpec::Rails
7
7
include FixtureSupport
8
8
end
9
9
10
- # These are deprecated when Rails is 7.1.0 or above
11
- expect ( group ) . to respond_to ( :fixture_path )
12
- expect ( group ) . to respond_to ( :fixture_path= )
10
+ if ::Rails ::VERSION ::STRING <= "7.2.0"
11
+ # These are deprecated when Rails is 7.1.0 or above
12
+ expect ( group ) . to respond_to ( :fixture_path )
13
+ expect ( group ) . to respond_to ( :fixture_path= )
14
+ end
13
15
14
16
if ::Rails ::VERSION ::STRING >= "7.1.0"
15
17
expect ( group ) . to respond_to ( :fixture_paths )
You can’t perform that action at this time.
0 commit comments