Skip to content

Commit 358a85f

Browse files
jguecaimburuJonRowe
authored andcommitted
Quickfix: Remove explicit config from method definition
1 parent 8f6a626 commit 358a85f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rspec/rails/configuration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def filter_rails_from_backtrace!
166166

167167
# @deprecated TestFixtures#fixture_path is deprecated and will be removed in Rails 7.2
168168
if ::Rails::VERSION::STRING >= "7.1.0"
169-
def config.fixture_path=(path)
169+
def fixture_path=(path)
170170
RSpec.deprecate(
171171
"config.fixture_path = #{path.inspect}",
172172
replacement: "config.fixture_paths = [#{path.inspect}]",

spec/rspec/rails/fixture_support_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module RSpec::Rails
22
RSpec.describe FixtureSupport do
33
context "with use_transactional_fixtures set to false" do
4-
it "still supports fixture_path and fixture_paths" do
4+
it "still supports fixture_path/fixture_paths" do
55
allow(RSpec.configuration).to receive(:use_transactional_fixtures) { false }
66
group = RSpec::Core::ExampleGroup.describe do
77
include FixtureSupport

0 commit comments

Comments
 (0)