summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml3
-rw-r--r--test/config/README17
2 files changed, 18 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 69981b0..90822f3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,8 +5,7 @@ notifications:
before_script:
- "test/setup_couch.sh"
- "mv test/config/couchdb.yml.admin config/couchdb.yml"
- - "bundle exec rake couchrest:migrate_with_proxies"
- - "bundle exec rake couchrest:migrate_with_proxies" # looks like this needs to run twice
+ - "bundle exec rake RAILS_ENV=test couchrest:migrate_with_proxies"
- "mv test/config/couchdb.yml.user config/couchdb.yml"
after_script:
- "cat tmp/*.test*.log" # printing logs from the failed integration tests
diff --git a/test/config/README b/test/config/README
new file mode 100644
index 0000000..58e37b2
--- /dev/null
+++ b/test/config/README
@@ -0,0 +1,17 @@
+These files are used for Travis tests to test admin and user permissions:
+
+couchdb.yml.admin:
+
+ when activated, leap_web has admin permissions (e.g. ability to create
+ databases, upload design docs).
+
+couchdb.yml.user:
+
+ when activited, leap_web has normal permissions (e.g. can modify all the
+ records).
+
+The term 'user' here is misleading. It is really two different types of admin
+permissions.
+
+Rails or rake must be run with 'test' environment for these configs to be
+used.