This is a strange problem. I am using AS and CanCan and everything seems to be working OK. However, RSpec testing for a certain controller C fails if an AS controller has been loaded before it. That failing test involves a controller which includes skip_authorization_check to bypass CanCan authorization.
- If I run RSpec for C by itself, it works. - If I run tests for an AS controller (as_controller_spec) followed by C (c_controller_spec), C fails with CanCan authorization error - If I *empty* all the tests from the as_controller_spec, and *empty*all the content from as_controller, C passes - If I then include only "active_scaffold :group do |config|; end" in as_controller, as below, C fails again. class GroupsController < ApplicationController active_scaffold :group do |config|; end end - If I add a login to c_controller_spec, it works again. So it appears that the skip_authorization_check is the piece that is not working. I don't know whether it has something to do with the CanCan bridge or something else. -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To view this discussion on the web visit https://groups.google.com/d/msg/activescaffold/-/hPxki7HBkzsJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en.
