Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error in generated controller specs #14

Open
roflomglol opened this issue Aug 6, 2015 · 4 comments
Open

Syntax error in generated controller specs #14

roflomglol opened this issue Aug 6, 2015 · 4 comments
Labels

Comments

@roflomglol
Copy link

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

@roflomglol
Copy link
Author

Oh, maybe it's related to #12

@erwinjunker
Copy link
Owner

Hi,

could you post the controller code you are using?

Erwin

@roflomglol
Copy link
Author

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.

@erwinjunker
Copy link
Owner

Should be fixed together with #12 in version 0.5.7

@erwinjunker erwinjunker added the bug label Aug 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants