diff --git a/lib/couchrest/helper/template-app/views/example-map.js b/lib/couchrest/helper/template-app/views/example/map.js similarity index 100% rename from lib/couchrest/helper/template-app/views/example-map.js rename to lib/couchrest/helper/template-app/views/example/map.js diff --git a/lib/couchrest/helper/template-app/views/example-reduce.js b/lib/couchrest/helper/template-app/views/example/reduce.js similarity index 100% rename from lib/couchrest/helper/template-app/views/example-reduce.js rename to lib/couchrest/helper/template-app/views/example/reduce.js diff --git a/spec/couchapp_spec.rb b/spec/couchapp_spec.rb index cd5a082..6d1aa0a 100644 --- a/spec/couchapp_spec.rb +++ b/spec/couchapp_spec.rb @@ -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/)