Merge branch 'errors_fix' of https://github.com/gsterndale/couchrest_model into errors_fix

This commit is contained in:
Sam Lown 2011-02-02 20:17:51 +01:00
commit 1ccb96bf56
2 changed files with 8 additions and 1 deletions

View file

@ -286,6 +286,11 @@ describe CouchRest::Model::CastedModel do
@toy2.errors.should be_empty
@toy3.errors.should_not be_empty
end
it "should not use dperecated ActiveModel options" do
ActiveSupport::Deprecation.should_not_receive(:warn)
@cat.should_not be_valid
end
end
describe "on a casted model property" do