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
1.4m articles
1.4m replys
5 comments
57.0k users