regressor
regressor copied to clipboard
Syntax error in generated controller specs
Hey,
I have encountered a problem using your gem. Controller specs generator created this kind of spec for me:
it { should use_before_filter(:_callback_before_45(self)) }
It raises an error
syntax error, unexpected '(', expecting ')' (SyntaxError)
I'm not sure why. Please advise. :)
Thanks, Sergey
Oh, maybe it's related to #12
Hi,
could you post the controller code you are using?
Erwin
I think it has something to do with load_and_authorize_resource of CanCan gem. Those specs disappear if I comment this code in controllers of "corrupted" specs.
Should be fixed together with #12 in version 0.5.7