fixed a major bug with inheritance and the class database setup. (plus some validation bugs)
This commit is contained in:
parent
e448112ff6
commit
c0abafd1e0
6 changed files with 16 additions and 24 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue