From 293e9abad85cdf7c5b0b65f29bef172570b6e6db Mon Sep 17 00:00:00 2001 From: Chris Anderson Date: Thu, 1 Jan 2009 22:32:50 -0800 Subject: [PATCH] simpler mappings --- .../template-app/views/{example-map.js => example/map.js} | 0 .../views/{example-reduce.js => example/reduce.js} | 0 spec/couchapp_spec.rb | 3 ++- 3 files changed, 2 insertions(+), 1 deletion(-) rename lib/couchrest/helper/template-app/views/{example-map.js => example/map.js} (100%) rename lib/couchrest/helper/template-app/views/{example-reduce.js => example/reduce.js} (100%) 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/)