Sha256: bc47c24ac4067f6e364d20f9e800484a2a708e10556c4a1f1d71ee568d0d8f23
Contents?: true
Size: 308 Bytes
Versions: 15
Compression:
Stored size: 308 Bytes
Contents
require 'mspec/guards/guard' class ComplianceGuard < SpecGuard end class Object def compliant_on(*args) g = ComplianceGuard.new(*args) yield if g.yield? g.unregister end def not_compliant_on(*args) g = ComplianceGuard.new(*args) yield if g.yield? true g.unregister end end
Version data entries
15 entries across 15 versions & 1 rubygems