Exception: RSpec::Swag::MissingParameterError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rspec/swag/request_factory.rb

Instance Method Summary collapse

Instance Method Details

#messageObject



296
297
298
299
300
301
302
303
304
305
# File 'lib/rspec/swag/request_factory.rb', line 296

def message
  <<~MSG
    Missing parameter '#{super}'

    Please check your spec. It looks like you defined a body parameter,
    but did not declare usage via let. Try adding:

        let(:#{super}) {}
  MSG
end