Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Error with RR: undefined method `to_sym' for ActiveRecord::Base:Class #59
I've been using RR for mocks and stubs with RSpec 2.99. When I upgraded to 3.0.0.beta2 I got the following error in the tests:
The code we were using to stub with RR looked like this:
I've fixed the code to use RSpec mocks now but raising the issue in case others want to use RR. I was using the latest version.
Thanks for the extremely clear code example :).
To use rr with rspec, you need to configure it:
RSpec.configure do |rspec| rspec.mock_with :rr end
With that in place, there's no need to