Skip to content

Commit 5d0babc

Browse files
committed
These methods are now gone on main
1 parent 9de56dd commit 5d0babc

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

spec/rspec/rails/configuration_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@ def in_inferring_type_from_location_environment
173173

174174
group = RSpec.describe("Arbitrary Description", :use_fixtures)
175175

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
177179

178180
if ::Rails::VERSION::STRING >= "7.1.0"
179181
with_isolated_stderr { expect(group.fixture_path).to eq("custom/path") }

spec/rspec/rails/fixture_support_spec.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ module RSpec::Rails
77
include FixtureSupport
88
end
99

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
1315

1416
if ::Rails::VERSION::STRING >= "7.1.0"
1517
expect(group).to respond_to(:fixture_paths)

0 commit comments

Comments
 (0)