fixed a major bug with inheritance and the class database setup. (plus some validation bugs)

This commit is contained in:
Matt Aimonetti 2009-02-10 16:10:35 -08:00
parent e448112ff6
commit c0abafd1e0
6 changed files with 16 additions and 24 deletions

View file

@ -12,7 +12,6 @@ class DummyModel < CouchRest::ExtendedDocument
property :casted_attribute, :cast_as => 'WithCastedModelMixin'
end
describe CouchRest::CastedModel do
describe "A non hash class including CastedModel" do
@ -59,7 +58,7 @@ describe CouchRest::CastedModel do
describe "saved document with casted models" do
before(:each) do
@obj = DummyModel.new(:casted_attribute => {:name => 'whatever'})
@obj.save
@obj.save.should be_true
end
it "should be able to load with the casted models" do