views accept blocks

This commit is contained in:
Chris Anderson 2008-10-14 15:08:17 -07:00
parent 254eb20161
commit 6851c7a2be
11 changed files with 25 additions and 65 deletions

View file

@ -440,7 +440,6 @@ describe CouchRest::Model do
end
it "should yield" do
courses = []
puts "Course.view(:by_title)"
rs = Course.by_title # remove me
Course.view(:by_title) do |course|
# puts "course"
@ -459,6 +458,7 @@ end
duck["dept"].should == true
end
it "should make the design doc" do
@as = Course.by_dept
@doc = Course.design_doc
@doc["views"]["by_dept"]["map"].should_not include("couchrest")
end