From f88ca472dc4a613d06d7009430a1999e91052204 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Tue, 15 Dec 2015 15:31:19 -0300 Subject: [PATCH] cucumber: ensure rails_env is test if not passed --- features/support/env.rb | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/features/support/env.rb b/features/support/env.rb index f34175d..d9dc355 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -4,6 +4,8 @@ # instead of editing this one. Cucumber will automatically load all features/**/*.rb # files. +ENV["RAILS_ENV"] ||= "test" + require File.expand_path(File.dirname(__FILE__) + '/../../config/environment') require 'cucumber/rails' -- libgit2 0.21.2