Class: NonComplianceGuard
- Defined in:
- lib/extensions/mspec/mspec/guards/noncompliance.rb
Instance Attribute Summary
Attributes inherited from SpecGuard
Instance Method Summary collapse
Methods inherited from SpecGuard
#===, #add, clear, clear_guards, finish, guards, #implementation?, #initialize, #os?, #platform?, #record, report, #report_key, #reporting?, ruby_version, ruby_version_override, ruby_version_override=, #standard?, #unregister, #windows?, #wordsize?, #yield?
Constructor Details
This class inherits a constructor from SpecGuard
Instance Method Details
#match? ⇒ Boolean
4 5 6 7 8 9 |
# File 'lib/extensions/mspec/mspec/guards/noncompliance.rb', line 4 def match? if @args.include? :ruby raise Exception, "improper use of deviates_on guard" end !standard? and implementation?(*@args) end |