I'm trying to assert that the last record did not get deleted in rails model unit test. I raise an exception if the record.count.one? is true. Initially there are two records.
Edited: There is a user story that says you can delete the users. You cannot delete the user that you are logged in with. (functional test) You cannot delete the last user. (unit test)