Sha256: dafc7b79860738cac07305f1c6ecf7111a9c0e9a82895dc8724d05bedda8eb4e
Contents?: true
Size: 663 Bytes
Versions: 3
Compression:
Stored size: 663 Bytes
Contents
require 'spec_helper' describe "Document" do describe User do it { should have_fields(:email, :login) } end describe Article do it { should have_field(:published).of_type(Boolean).with_default_value_of(false) } it { should have_field(:allow_comments).of_type(Boolean).with_default_value_of(true) } it { should_not have_field(:allow_comments).of_type(Boolean).with_default_value_of(false) } end describe Article do it { should be_mongoid_document } it { should be_versioned_document } it { should be_timestamped_document } it { should be_paranoid_document } it { should be_multiparameted_document } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongoid-rspec-1.5.0 | spec/unit/document_spec.rb |
mongoid-rspec-1.4.6 | spec/unit/document_spec.rb |
mongoid-rspec-1.4.5 | spec/unit/document_spec.rb |