StartupInstituteChicago / Fall2013TramLai

0 stars 0 forks source link

Test/Validate User can only star a restaurant once #9

Open tramxme opened 10 years ago

tramxme commented 10 years ago

I was thinking of using count and make sure that the star count for that restaurant with that owner is always one but I dont know how I should write that test..Thank you!!!

jkelleyj commented 10 years ago

One approach is to call the star method twice in a row then check that the star count for the restaurant and owner is only one.

On Wednesday, November 27, 2013, Tram Lai wrote:

I was thinking of using count and make sure that the star count for that restaurant with that owner is always one but I dont know how I should write that test..Thank you!!!

— Reply to this email directly or view it on GitHubhttps://github.com/StartupInstituteChicago/Fall2013TramLai/issues/9 .