Sha256: 5b5e3889d1d6921f5ed4b983fcd160f159914b9055cee8d598867c2b587876e2
Contents?: true
Size: 381 Bytes
Versions: 1
Compression:
Stored size: 381 Bytes
Contents
module Mongoid module Matchers module Document class BeParanoidMatcher def matches?(klass) @klass = klass @klass.included_modules.include?(Mongoid::Paranoia) end def description "be a paranoid Mongoid document" end end def be_paranoid BeParanoidMatcher.new end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongoid-minitest-0.0.1 | lib/matchers/document/be_paranoid.rb |