Sha256: 835d386d09a8da9a574a3b997a4ba7a77770252b6cc0c644626dea85c5d2caf9

Contents?: true

Size: 372 Bytes

Versions: 1

Compression:

Stored size: 372 Bytes

Contents

module Mongoid
  module Matchers
    module Document
      class BeDocumentMatcher
        def matches?(klass)
          @klass = klass
          @klass.included_modules.include?(Mongoid::Document)
        end

        def description
          "be a Mongoid document"
        end
      end

      def be_document
        BeDocumentMatcher.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_document.rb