Re: [rspec-users] Using Rails observers and testability

2009-05-05 Thread Pat Maddox
On Mon, May 4, 2009 at 12:39 PM, Zach Dennis wrote: > On Mon, May 4, 2009 at 1:57 PM, BJ Clark wrote: >> Fernando, >> >> They are easier to spec with Pat Maddox's "no peeping toms" plugin. >> http://github.com/pat-maddox/no-peeping-toms/tree/master > > I use Pat's no-peeping-toms plugin as well.

Re: [rspec-users] Using Rails observers and testability

2009-05-04 Thread Zach Dennis
On Mon, May 4, 2009 at 1:57 PM, BJ Clark wrote: > Fernando, > > They are easier to spec with Pat Maddox's "no peeping toms" plugin. > http://github.com/pat-maddox/no-peeping-toms/tree/master I use Pat's no-peeping-toms plugin as well. It's a great tool in Rails toolbox. Brandon Keepers has made

Re: [rspec-users] Using Rails observers and testability

2009-05-04 Thread Mark Wilden
On Mon, May 4, 2009 at 10:57 AM, BJ Clark wrote: > Fernando, > > They are easier to spec with Pat Maddox's "no peeping toms" plugin. > http://github.com/pat-maddox/no-peeping-toms/tree/master > FWIW, I was not able to run specs surrounded by a with_observer call when using mislav-will_paginate.

Re: [rspec-users] Using Rails observers and testability

2009-05-04 Thread BJ Clark
Fernando, They are easier to spec with Pat Maddox's "no peeping toms" plugin. http://github.com/pat-maddox/no-peeping-toms/tree/master BJ Clark On May 4, 2009, at 5:33 AM, Fernando Perez wrote: Hi, Before I do anything stupid, I'd like to know if there are any gotchas when using Rails obser

[rspec-users] Using Rails observers and testability

2009-05-04 Thread Fernando Perez
Hi, Before I do anything stupid, I'd like to know if there are any gotchas when using Rails observers instead of writing my own methods or callbacks? Are they easy to spec/test or will I run into troubles? Are they easily mockable? -- Posted via http://www.ruby-forum.com/. ___