[rspec-users] Using Rails observers and testability

BJ Clark bj at aboutus.org
Mon May 4 13:57:16 EDT 2009


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 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/.
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users



More information about the rspec-users mailing list