This commit is contained in:
Chris Anderson 2008-11-11 14:10:23 -08:00
parent 8f642e709b
commit 1431196c85

View file

@ -43,6 +43,12 @@ describe "couchapp" do
doc = @db.get("_design/my-app")
doc['views']['example']['map'].should match(/function/)
end
it "should create view for all the views" do
`echo 'moremap' > #{@fixdir}/my-app/views/more-map.js`
`#{@run} push my-app #{TESTDB}`
doc = @db.get("_design/my-app")
doc['views']['more']['map'].should match(/moremap/)
end
it "should create the index" do
`#{@run} push my-app #{TESTDB}`
doc = @db.get("_design/my-app")