simpler mappings

This commit is contained in:
Chris Anderson 2009-01-01 22:32:50 -08:00
parent a10d902d71
commit 293e9abad8
3 changed files with 2 additions and 1 deletions

View file

@ -55,7 +55,8 @@ describe "couchapp" do
@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`
`mkdir -p #{@fixdir}/my-app/views/more`
`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/)