Skip to content

Commit f5edf18

Browse files
committed
Merge pull request #2370 from rspec/remove-fixture-file-hack
Remove old fixture_path support
1 parent dbb7362 commit f5edf18

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

lib/rspec/rails/fixture_file_upload_support.rb

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,12 @@ class RailsFixtureFileWrapper
2222
include ActionDispatch::TestProcess if defined?(ActionDispatch::TestProcess)
2323

2424
class << self
25-
attr_reader :fixture_path
25+
attr_accessor :fixture_path
2626

2727
# Get instance of wrapper
2828
def instance
2929
@instance ||= new
3030
end
31-
32-
# Override fixture_path set
33-
# to support Rails 3.0->3.1 using ActionController::TestCase class to resolve fixture_path
34-
# see https://apidock.com/rails/v3.0.0/ActionDispatch/TestProcess/fixture_file_upload
35-
def fixture_path=(value)
36-
if ActionController::TestCase.respond_to?(:fixture_path)
37-
ActionController::TestCase.fixture_path = value
38-
end
39-
@fixture_path = value
40-
end
4131
end
4232
end
4333
end

0 commit comments

Comments
 (0)