升级到 ruby 3 和 rails 6.1 后,我的测试上线了
subject.avatar.attach(fixture_file_upload(Rails.root.join('spec', 'fixtures', 'images', 'avatar.jpg')))
和:
NoMethodError:
undefined method `file_fixture_path' for RSpec::Rails::FixtureFileUploadSupport::RailsFixtureFileWrapper:Class
Did you mean? fixture_path
错误堆栈指向
webmock-3.11.0/lib/webmock/rspec.rb:37
任何建议如何调试它?