HI, I am having the same problem within Rspec.
undefined local variable or method `as_action_aliases' for #<Ability:0x007fb I am trying to include it the bridge into the tests via a have_abilities rspec matcher but it doesnt seem to work. How would I properly include this into my test suite for Ability? >>>load bridge in your unit tests (ActiveScaffold::Bridges::CanCan.install) Thanks in advance. Mark On Wednesday, February 18, 2015 at 9:45:29 AM UTC-5, Andrey Korobkov wrote: > > Hello, > > Just found an issue with #as_action_aliases being called from CanCan > Ability model > (app/models/ability.rb). In development mode all is OK, but when running > tests, using authorization > by the rules, specified in this model, I have "method not found" error… > > Seems strange for me. Looks like #as_action_aliases becomes available for > controllers in some custom way, > which I still don't understand and so can't apply it to my Ability model. > Could you, please, make it more clear, how (if possible) to make it work > in this case? > > thanks in advance, > -- > Andrey Korobkov > -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails Gem" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/activescaffold. For more options, visit https://groups.google.com/d/optout.
