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

Can't name parameter "pending" #476

Open
sofianegargouri opened this issue Aug 13, 2020 · 1 comment
Open

Can't name parameter "pending" #476

sofianegargouri opened this issue Aug 13, 2020 · 1 comment

Comments

@sofianegargouri
Copy link

Whenever I declare a parameter named pending, (eg: parameter :pending, type: :boolean), I'm getting the following error:

Expected pending 'No reason given' to fail. No error was raised

@davidstosik
Copy link
Contributor

pending is a reserved keyword in RSpec (it marks the spec as expected to fail, and will fail the whole test suite if that spec passes). I have the feeling that when you mention pending, somewhere in your spec, it calls RSpec's method instead of retrieving the parameter you defined. I think it would be helpful to see a complete spec to help you.

Could you please show us the spec that fails (or at least a spec that contains enough to fail the way you describe)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants