Class: NonComplianceGuard

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

Instance Method Summary collapse

Methods inherited from SpecGuard

#===, #after, #before, finish, #implementation?, #initialize, #os?, #platform?, register, ruby_version, #standard?, unregister, #unregister, #windows?, windows?, #wordsize?, #yield?

Constructor Details

This class inherits a constructor from SpecGuard

Instance Method Details

#match?Boolean

Returns:

  • (Boolean)


4
5
6
7
8
9
# File 'lib/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