Module: RSpec::Rails::Swagger::Helpers::Response
- Defined in:
- lib/rspec/rails/swagger/helpers.rb
Instance Method Summary collapse
Instance Method Details
#capture_example ⇒ Object
242 243 244 |
# File 'lib/rspec/rails/swagger/helpers.rb', line 242 def capture_example [:capture_examples] = true end |
#schema(definition) ⇒ Object
246 247 248 249 250 251 252 253 |
# File 'lib/rspec/rails/swagger/helpers.rb', line 246 def schema definition definition.symbolize_keys! ref = definition.delete(:ref) schema = ref ? { '$ref' => ref } : definition [:swagger_response][:schema] = schema end |