We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbb7362 commit f5edf18Copy full SHA for f5edf18
lib/rspec/rails/fixture_file_upload_support.rb
@@ -22,22 +22,12 @@ class RailsFixtureFileWrapper
22
include ActionDispatch::TestProcess if defined?(ActionDispatch::TestProcess)
23
24
class << self
25
- attr_reader :fixture_path
+ attr_accessor :fixture_path
26
27
# Get instance of wrapper
28
def instance
29
@instance ||= new
30
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
41
42
43
0 commit comments