<
sebastien.nicoule...@gmail.com> wrote:
> I think this should work:
>
> expects :logged_in?, :on => proc { @controller }, :returns => true
>
> Seb
>
> Le vendredi 23 avril 2010 à 09:05 -0700, FoxDemon a écrit :
>
> > How do I test a before_filter with remarkable? Without remarable I
> > would do something like:
> > controller.stub(:logged_in?).and_return(true)
> > But with remarkable this results in:
> > undefined local variable or method `controller' for #<Class:
> > 0x7f8f056ef3c0> (NameError)
>
> > Thanks in advance
>
> --
> You received this message because you are subscribed to the Google Groups "Remarkable" group.To post to this group, send email