tag:blogger.com,1999:blog-11788780.post1390777377810603283..comments2023-12-29T13:22:33.104-08:00Comments on JJinuxLand: Rails: Fat Tests Considered Unharmfuljjinuxhttp://www.blogger.com/profile/03270879497119114175noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-11788780.post-91677429598753746402010-11-21T01:19:33.821-08:002010-11-21T01:19:33.821-08:00Hi, Shailen, I checked out that article, and I sim...Hi, Shailen, I checked out that article, and I simply disagree (as I know you do as well).jjinuxhttps://www.blogger.com/profile/03270879497119114175noreply@blogger.comtag:blogger.com,1999:blog-11788780.post-79823139349205375862010-11-21T01:19:13.643-08:002010-11-21T01:19:13.643-08:00From Shailen:
Hi JJ. You might want to look at th...From Shailen:<br /><br />Hi JJ. You might want to look at this article:<br /><br />http://blog.jayfields.com/2007/06/testing-one-assertion-per-test.htmljjinuxhttps://www.blogger.com/profile/03270879497119114175noreply@blogger.comtag:blogger.com,1999:blog-11788780.post-60563565201509012442010-10-19T00:51:57.091-07:002010-10-19T00:51:57.091-07:00I completely agree. Controller tests are expensiv...I completely agree. Controller tests are expensive and they take so long to run because of these shoulds for single assertions. <br /><br />I combined all these shoulds and my boss and coworkers didn't like it even though it saved on their rake:test.<br /><br />This is convention that should be discarded because it is overkill.Stellanoreply@blogger.comtag:blogger.com,1999:blog-11788780.post-12015410685572445632010-10-14T00:15:29.345-07:002010-10-14T00:15:29.345-07:00A suggestion: drop the word "should" fro...A suggestion: drop the word "should" from the it description. For example, instead of:<br /><br />it "should generate a proper index"<br /><br />use:<br /><br />it "generates a proper index"<br /><br />Also, I think I agree with your approach when you want to test the behavior, which is what you are testing in the example provided.Anthonyhttps://www.blogger.com/profile/15509319178481467493noreply@blogger.comtag:blogger.com,1999:blog-11788780.post-13580986828515652602010-10-13T20:40:05.132-07:002010-10-13T20:40:05.132-07:00My current boss recently recommended this to me. I...My current boss recently recommended this to me. I liked it and I have a feeling that you will as well. (Does this sound like spam or what?)<br /><br />http://www.agitar.com/downloads/TheWayOfTestivus.pdfBob Van Zanthttps://www.blogger.com/profile/04357848795026149057noreply@blogger.com