diff --git a/spec/couchapp_spec.rb b/spec/couchapp_spec.rb index 2ab3417..da8af52 100644 --- a/spec/couchapp_spec.rb +++ b/spec/couchapp_spec.rb @@ -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")