Sha256: 590006fe618bbe9956989c2e91eb3f4fbd1c5cb6fde8d8836a53ba2b3aa00cb6
Contents?: true
Size: 788 Bytes
Versions: 3
Compression:
Stored size: 788 Bytes
Contents
require 'spec_helper' describe "Document" do describe User do it { should have_fields(:email, :login) } it { should be_timestamped_document } it { should be_timestamped_document.with(:created) } it { should_not be_timestamped_document.with(:updated) } 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) } 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.4 | spec/unit/document_spec.rb |
mongoid-rspec-1.5.3 | spec/unit/document_spec.rb |
mongoid-rspec-1.5.1 | spec/unit/document_spec.rb |