spec/unit/document_spec.rb in mongoid-rspec-1.4.3 vs spec/unit/document_spec.rb in mongoid-rspec-1.4.4
- old
+ new
@@ -5,9 +5,11 @@
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 }
\ No newline at end of file