rspec_api_documentation icon indicating copy to clipboard operation
rspec_api_documentation copied to clipboard

Can't name parameter "pending"

Open sofianegargouri opened this issue 5 years ago • 1 comments

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

sofianegargouri avatar Aug 13 '20 10:08 sofianegargouri

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)?

davidstosik avatar Oct 02 '20 02:10 davidstosik