[rspec-users] Write tests for objects with lots of dependencies

Ash Moran ash.moran at patchspace.co.uk
Tue Nov 29 04:55:21 EST 2011

On 8 Nov 2011, at 06:52, Romain Tribes wrote:

> I'm writing a Risk-like webgame (https://github.com/Sephi-Chan/Conquest-on-Rails) and I want to add tests, but it's painful since objects have a lot of dependencies each other.

Hi Romain

I was just catching up on some old RSpec emails and found this.

I had a quick look through your code and noticed you have model specs but not controller specs. What led you to skip writing specs for the controllers? I'm just curious to see if there are common reasons for doing this (I think it's not uncommon).



More information about the rspec-users mailing list