After upgrade to ruby 3 and rails 6.1 my tests break on the line
subject.avatar.attach(fixture_file_upload(Rails.root.join('spec', 'fixtures', 'images', 'avatar.jpg')))
with:
NoMethodError: undefined method `file_fixture_path' for RSpec::Rails::FixtureFileUploadSupport::RailsFixtureFileWrapper:Class Did you mean? fixture_path
the error stack points to webmock-3.11.0/lib/webmock/rspec.rb:37
webmock-3.11.0/lib/webmock/rspec.rb:37
Any suggestions how to debug it?
After changing to file_fixture it works just fine relishapp.com/rspec/rspec-rails/v/3-8/docs/file-fixture
2.1m questions
2.1m answers
60 comments
57.0k users