You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works great for how I'm using this gem, but I suspect it might break things for other users, for example if mock_model was passed "A String representing a Class that does not exist" (?)
I would be happy to work on a PR if given some advice on how to proceed.
The text was updated successfully, but these errors were encountered:
Verifying doubles allows you to ensure that you're not mocking up attributes and methods that don't exist on the mocked class.
rspec-activemodel-mocks should support verifying doubles when using
mock_model
. I was able to enable it by simply changing:rspec-activemodel-mocks/lib/rspec/active_model/mocks/mocks.rb
Line 121 in f5f8165
to
This works great for how I'm using this gem, but I suspect it might break things for other users, for example if
mock_model
was passed "A String representing a Class that does not exist" (?)I would be happy to work on a PR if given some advice on how to proceed.
The text was updated successfully, but these errors were encountered: