airavata-courses / TeamCodeRing

0 stars 0 forks source link

writing basic rspec #4

Open patelparth30j opened 7 years ago

patelparth30j commented 7 years ago

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 ?