Sha256: 918933041484d6dde280a74756a4d8d092f41bbe0d45748079200ad16c3ab9f6

Contents?: true

Size: 387 Bytes

Versions: 1

Compression:

Stored size: 387 Bytes

Contents

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

        def description
          "be a versioned Mongoid document"
        end
      end

      def be_versioned
        BeVersionedMatcher.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_versioned.rb