summaryrefslogtreecommitdiff
path: root/vendor/gems/couchrest_session_store/test/setup_couch.sh
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gems/couchrest_session_store/test/setup_couch.sh')
-rwxr-xr-xvendor/gems/couchrest_session_store/test/setup_couch.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/vendor/gems/couchrest_session_store/test/setup_couch.sh b/vendor/gems/couchrest_session_store/test/setup_couch.sh
new file mode 100755
index 0000000..731534b
--- /dev/null
+++ b/vendor/gems/couchrest_session_store/test/setup_couch.sh
@@ -0,0 +1,7 @@
+HOST="http://localhost:5984"
+echo "couch version :"
+curl -X GET $HOST
+
+curl -X PUT $HOST/couchrest_sessions
+curl -X PUT $HOST/couchrest_sessions/_design/Session --data @design/Session.json
+