We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c3a0f5 commit 310772fCopy full SHA for 310772f
lib/rspec/rails/fixture_file_upload_support.rb
@@ -14,9 +14,10 @@ def fixture_path
14
@fixture_path ||= calculate_path
15
end
16
17
+ # overrided accessor to support Rails 3.0..3.1
18
+ # because of ActionController::TestCase class to resolve fixture_path
19
+ # see https://apidock.com/rails/v3.0.0/ActionDispatch/TestProcess/fixture_file_upload
20
def fixture_path=(value)
- # Rails 3.0..3.1 are using ActionController::TestCase class to resolve fixture_path
- # see https://apidock.com/rails/v3.0.0/ActionDispatch/TestProcess/fixture_file_upload
21
if ActionController::TestCase.respond_to?(:fixture_path)
22
ActionController::TestCase.fixture_path = value
23
0 commit comments