Hello. I am attempting to hook up the Spy gem into the rspec config with the provided snippet and running into the following error whenever trying to run any spec: wrong argument type Class (expected Module).
In addition to that error, it also looks like there is a deprecation warning - Requiring 'rspec/autorun' when running RSpec via the 'rspec' command is deprecated. Called from /rails/spec/spec_helper.rb:18:in '<top (required)>'.
Our current versions are as follows -
rspec-core (3.12.1)
rspec-rails (6.0.1)
spy (1.0.5)
rails (7.0.4.2)
ruby 3.2.1p31
Any help would be greatly appreciated. Thank you for your time!