README.md in mongoid-rspec-1.5.3 vs README.md in mongoid-rspec-1.5.4
- old
+ new
@@ -116,9 +116,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`
it { should be_timestamped_document.with(:created) }