rspec_api_documentation icon indicating copy to clipboard operation
rspec_api_documentation copied to clipboard

Use underscored variables automatically for dasherized params

Open kurko opened this issue 9 years ago • 0 comments

Here's what we have to do to support parameters with dashed (e.g JSONAPI):

parameter 'application-id', "Application ID"

let(:application_id)  { application.id }
let('application-id') { application_id }

Dashed parameters should just use the underscored version of the name. application-id would look up for application_id.

kurko avatar Jan 05 '17 14:01 kurko