News for hackers. Stuff that matters.
Re:Crazy, Heretical, and Awesome: The Way I Write Rails Apps by swampthing on Tuesday August 02, 2011 @03:58PM (#2838475)
Yea, that's pretty much it. I would recommend looking at Spork - it pre-loads the Rails environments (the parts you want it to, at least) onto standing processes that you use to run tests. I consider Rails testing to be pretty much unusable without it.
Re:Crazy, Heretical, and Awesome: The Way I Write Rails Apps by pbh on Tuesday August 02, 2011 @05:37PM (#2838813)
Ah, down to 14s for 100 tests. I had originally avoided spork because it looked rspec only, but I guess there's spork-testunit as well.

Thanks!

Re:Crazy, Heretical, and Awesome: The Way I Write Rails Apps by arikfr on Wednesday August 03, 2011 @03:07AM (#2840130)
Spork is awesome, but has its "gotchas" when it doesn't reload properly. I recommend reading this: https://github.com/timcharper/spork/wiki/Spork.trap_method-J... and applying whatever there is relevant to your project and also using Guard-Spork.