Sha256: afa3956a96121a7c59db5a021df7afecc2bc48260338c197c74d2c8c44793184
Contents?: true
Size: 648 Bytes
Versions: 3
Compression:
Stored size: 648 Bytes
Contents
require 'spec_helper' if Mongoid::Compatibility::Version.mongoid4_or_newer? RSpec.describe Mongoid::Matchers::BeMongoidDocument do context 'when model does\'t include Mongoid::Attributes::Dynamic' do subject do Class.new do include Mongoid::Document end end it { is_expected.not_to be_dynamic_document } end context 'when model doesn\'t include Mongoid::Attributes::Dynamic' do subject do Class.new do include Mongoid::Document include Mongoid::Attributes::Dynamic end end it { is_expected.to be_dynamic_document } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongoid-rspec-4.1.0 | spec/unit/be_mongoid_document_spec.rb |
mongoid-rspec-4.0.1 | spec/unit/be_mongoid_document_spec.rb |
mongoid-rspec-4.0.0 | spec/unit/be_mongoid_document_spec.rb |