disable from rspec

26 views
Skip to first unread message

Rainer Kuhn

unread,
Nov 18, 2009, 1:04:07 PM11/18/09
to declarative_authorization
I'm struggling a getting this to work with rspec. Is there a way to
disable filtering entirely, since I test that rather with cucumber and
not with rspec?

Thx
Ray

Jeremy Durham

unread,
Nov 18, 2009, 1:55:06 PM11/18/09
to declarative_...@googlegroups.com
Hi Ray,

Not sure if you're trying to turn off declarative auth rules in your specs, but you can do that with:

Authorization.ignore_access_control(true)

Hope that helps,
Jeremy


--

You received this message because you are subscribed to the Google Groups "declarative_authorization" group.
To post to this group, send email to declarative_...@googlegroups.com.
To unsubscribe from this group, send email to declarative_author...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/declarative_authorization?hl=.



Rainer Kuhn

unread,
Nov 18, 2009, 8:49:58 PM11/18/09
to declarative_authorization
Thanks, that was exactly what I needed.

I tried something along the lines of
Authorization.stub!(:filter_access_to).and_return(true)
but it didn't work.

On Nov 18, 7:55 pm, Jeremy Durham <jeremydur...@gmail.com> wrote:
> Hi Ray,
>
> Not sure if you're trying to turn off declarative auth rules in your specs,
> but you can do that with:
>
> Authorization.ignore_access_control(true)
>
> Hope that helps,
> Jeremy
>
> On Wed, Nov 18, 2009 at 1:04 PM, Rainer Kuhn <ticktricktr...@gmail.com>wrote:
>
> > I'm struggling a getting this to work with rspec. Is there a way to
> > disable filtering entirely, since I test that rather with cucumber and
> > not with rspec?
>
> > Thx
> > Ray
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "declarative_authorization" group.
> > To post to this group, send email to
> > declarative_...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > declarative_author...@googlegroups.com<declarative_authorization%2Bunsu...@googlegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages