I am trying to write a basic rspec for the UsersController 'new' method checking it with =={} for creation of new instance but it fails saying got: #UsersController:0x007f84f3288398 (using ==)
If that is a hashcode of the new object its going to change every time we call the method. How can I check against this ?
I am trying to write a basic rspec for the UsersController 'new' method checking it with =={} for creation of new instance but it fails saying got: #UsersController:0x007f84f3288398 (using ==)
If that is a hashcode of the new object its going to change every time we call the method. How can I check against this ?