spec/unit/document_spec.rb in mongoid-rspec-1.5.5 vs spec/unit/document_spec.rb in mongoid-rspec-1.5.6
- old
+ new
@@ -9,9 +9,11 @@
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 belong_to(:author) }
+ it { should have_field(:title).localized }
it { should_not have_field(:allow_comments).of_type(Boolean).with_default_value_of(false) }
it { should_not have_field(:number_of_comments).of_type(Integer).with_default_value_of(1) }
it { should be_mongoid_document }
it { should be_versioned_document }
it { should be_timestamped_document }