Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
#with fails when passed a #mock_model behaving as a null object #98
Given a spec like this:
And some code:
The spec will fail, claiming:
And this is due to how the
I'm not exactly clear on why this method was used to determine if the object was a null object, when we have
If not, then we can fix this on the rspec-rails side.
I'm happy to implement my fix, I just wanted someone else with a deeper understanding of RSpec to chime in and make sure my fix and this issue are valid.