README.md in mongoid-rspec-1.5.4 vs README.md in mongoid-rspec-1.5.5

- old
+ new

@@ -1,8 +1,10 @@ mongoid-rspec = +[![Build Status](https://secure.travis-ci.org/evansagge/mongoid-rspec.png?branch=master)](https://travis-ci.org/evansagge/mongoid-rspec) + http://rubygems.org/gems/mongoid-rspec RSpec matchers for Mongoid 3.x. For Mongoid 2.x, use [mongoid-rspec 1.4.5](http://rubygems.org/gems/mongoid-rspec/versions/1.4.5) @@ -115,11 +117,10 @@ Others - describe User do it { should have_fields(:email, :login) } - it { should have_field(:active).of_type(Boolean).with_default_value_of(false) } it { should have_field(:s).with_alias(:status) } it { should have_fields(:birthdate, :registered_at).of_type(DateTime) } it { should be_timestamped_document } # if you're declaring `include Mongoid::Timestamps` or any of `include Mongoid::Timestamps::Created` and `Mongoid::Timestamps::Updated` @@ -131,9 +132,16 @@ it { should be_multiparameted_document } # if you're declaring `include Mongoid::MultiParameterAttributes` end describe Log do it { should be_stored_in :logs } + 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_not have_field(:number_of_comments).of_type(Integer).with_default_value_of(1) } end Use - add in Gemfile