Skip to content

Commit 64e965b

Browse files
committed
Remove old fixture_path support
1 parent 7643f3b commit 64e965b

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lib/rspec/rails/fixture_file_upload_support.rb

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

2424
class << self
25-
attr_reader :fixture_path
26-
2725
# Get instance of wrapper
2826
def instance
2927
@instance ||= new
3028
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
4129
end
4230
end
4331
end

0 commit comments

Comments
 (0)