Sha256: 464f958a0983e3f98d40294142831b91cd627834f75b1206a0f0d136c1524efd
Contents?: true
Size: 439 Bytes
Versions: 3
Compression:
Stored size: 439 Bytes
Contents
require 'spec_helper' RSpec.describe Mongoid::Matchers::BeDynamicDocument do context 'when model does\'t include Mongoid::Document' do subject do Class.new end it { is_expected.not_to be_mongoid_document } end context 'when model doesn\'t include Mongoid::Document' do subject do Class.new do include Mongoid::Document end end it { is_expected.to be_mongoid_document } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongoid-rspec-4.1.0 | spec/unit/be_dynamic_document_spec.rb |
mongoid-rspec-4.0.1 | spec/unit/be_dynamic_document_spec.rb |
mongoid-rspec-4.0.0 | spec/unit/be_dynamic_document_spec.rb |