Class: Webspicy::Specification::Pre::RobustToInvalidInput
- Inherits:
-
Object
- Object
- Webspicy::Specification::Pre::RobustToInvalidInput
- Includes:
- Webspicy::Specification::Pre
- Defined in:
- lib/webspicy/specification/pre/robust_to_invalid_input.rb
Constant Summary
Constants included from Condition
Instance Attribute Summary
Attributes included from Condition
#matching_description, #tester
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Webspicy::Specification::Pre
#contribute_to_openapi_verb, #instrument
Methods included from Condition
#bind, #fail!, #sooner_or_later, #to_s
Class Method Details
.match(service, pre) ⇒ Object
7 8 9 |
# File 'lib/webspicy/specification/pre/robust_to_invalid_input.rb', line 7 def self.match(service, pre) self.new end |
Instance Method Details
#counterexamples(service) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/webspicy/specification/pre/robust_to_invalid_input.rb', line 15 def counterexamples(service) spec = service.specification first = service.examples.first cexamples = [] cexamples += url_randomness_counterexamples(service, first) if first cexamples += empty_input_counterexamples(service, first) if first cexamples end |
#match(service, pre) ⇒ Object
11 12 13 |
# File 'lib/webspicy/specification/pre/robust_to_invalid_input.rb', line 11 def match(service, pre) self end |