Class: NotCompliantOnGuard

Inherits:
SpecGuard show all
Defined in:
lib/mspec/guards/compliance.rb

Instance Attribute Summary

Attributes inherited from SpecGuard

#name, #parameters

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

Returns:

  • (Boolean)

13
14
15
16
17
18
# File 'lib/mspec/guards/compliance.rb', line 13

def match?
  if @args.include? :ruby
    raise Exception, "improper use of not_compliant_on guard"
  end
  standard? or !implementation?(*@args)
end