Topic: How to test whether present? is called in rspec?
In rspec, how can I test whether present? or blank? (or similar) is called? Normally I'd do something like this:
But this doesn't work as 'sanity' can be nil, so rspec spits out a rather odd message on failure:
(nil).present?(any args) expected: 1 time received: 9 times
How can I test whether the user's sanity was checked as present?