views accept blocks
This commit is contained in:
parent
254eb20161
commit
6851c7a2be
11 changed files with 25 additions and 65 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue