[rspec-users] mocking named_scope utilization

Pat Maddox pergesu at gmail.com
Tue Nov 4 18:41:45 EST 2008

Fernando Perez <lists at ruby-forum.com> writes:

> Therefore a workaround is to define an instance method:
> --
> class Thing
>   def self.method1_and_method2(arg)
>     method1(arg).method2
>   end
> end

I'm inclined to call this an improvement rather than a workaround :)


More information about the rspec-users mailing list