From c7b143f0fef19699517ba6badd578c4c4d606a40 Mon Sep 17 00:00:00 2001 From: Joel Oliveira Date: Tue, 24 Jan 2017 17:02:15 -0500 Subject: [PATCH] By default, do not enable HTTPS when running specs Until this commit the specs hitting app endpoints would have their behavior altered depending on what was set in your `.env.local` file for `ENABLE_HTTPS`. It should always be set to "no" when the specs are being run. Adding .env.test with the necessary environment variables will force the test environment to always run with ENABLE_HTTPS turned off. --- .env.test | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .env.test diff --git a/.env.test b/.env.test new file mode 100644 index 000000000..b67ba4ee8 --- /dev/null +++ b/.env.test @@ -0,0 +1,2 @@ +RAILS_ENV=test +ENABLE_HTTPS=no