Module: RSpec::Swag::ExampleHelpers
- Defined in:
- lib/rspec/swag/example_helpers.rb
Instance Method Summary collapse
Instance Method Details
#assert_response_matches_metadata(metadata) ⇒ Object
20 21 22 |
# File 'lib/rspec/swag/example_helpers.rb', line 20 def () ResponseValidator.new.validate!(, last_response) end |
#submit_request(metadata) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/rspec/swag/example_helpers.rb', line 9 def submit_request() request = RequestFactory.new.build_request(, self) send( request[:verb], request[:path], request[:payload], request[:headers] ) end |