Simplifying and moving CastedArray into own file

This commit is contained in:
Sam Lown 2010-03-31 08:25:33 +00:00
parent 1b019fa3fe
commit f196aacecc
4 changed files with 35 additions and 25 deletions

View file

@ -210,7 +210,7 @@ describe CouchRest::CastedModel do
@cat.toys.push(toy)
@cat.save.should be_true
@cat = Cat.get @cat.id
@cat.toys.class.should == CastedArray
@cat.toys.class.should == CouchRest::CastedArray
@cat.toys.first.class.should == CatToy
@cat.toys.first.should === toy
end