Class: Peck::Should::Disallow
- Inherits:
-
ResponseRequirement
- Object
- Proxy
- ResponseRequirement
- Peck::Should::Disallow
- Defined in:
- lib/peck_on_rails/assertions.rb
Constant Summary
Constants inherited from ResponseRequirement
ResponseRequirement::SUPPORTED_VERBS
Instance Attribute Summary
Attributes inherited from ResponseRequirement
#allowed_exceptions, #expected, #method
Instance Method Summary collapse
Methods inherited from ResponseRequirement
#define_specification, #method_missing, supported_verbs
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Peck::Should::ResponseRequirement
Instance Method Details
#description(verb, action, params = {}) ⇒ Object
63 64 65 66 67 68 69 |
# File 'lib/peck_on_rails/assertions.rb', line 63 def description(verb, action, params={}) description = ["should"] description << "not" if (negated == false) description << "be allowed to #{verb.upcase}s `#{action}'" description << "#{params.inspect}" unless params.blank? description.join(' ') end |