Re: [rspec-users] continuing on my quest to learn rspec...

2010-03-24 Thread Patrick J. Collins
> Firstly I wonder why you're putting this behaviour on the photo class. Have > you ever heard of the code smell 'feature envy'? Photo#set_cover seems to me > to be talking mostly to the photo_album, so perhaps this behaviour should move > there? Ok.. So I changed that code and put it in my photo

Re: [rspec-users] continuing on my quest to learn rspec...

2010-03-23 Thread Matt Wynne
On 23 Mar 2010, at 17:43, Patrick J. Collins wrote: Ok, So... My first attempt at specing a method in my photo model didn't go so well.. http://gist.github.com/341447 Both of these tests are failing, and I am not even sure if I am structuring this anywhere near correct or not... In o

[rspec-users] continuing on my quest to learn rspec...

2010-03-23 Thread Patrick J. Collins
Ok, So... My first attempt at specing a method in my photo model didn't go so well.. http://gist.github.com/341447 Both of these tests are failing, and I am not even sure if I am structuring this anywhere near correct or not... In other words... HELP!! Patrick J. Collins http://collin