[Git][noosfero/noosfero][master] cucumber: ensure rails_env is test if not passed
Rodrigo Souto
gitlab at mg.gitlab.com
Tue Dec 15 16:33:25 BRST 2015
Rodrigo Souto pushed to branch master at Noosfero / noosfero
Commits:
f88ca472 by Rodrigo Souto at 2015-12-15T15:31:19Z
cucumber: ensure rails_env is test if not passed
- - - - -
1 changed file:
- features/support/env.rb
Changes:
=====================================
features/support/env.rb
=====================================
--- 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'
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/f88ca472dc4a613d06d7009430a1999e91052204
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20151215/18d06c3c/attachment.html>
More information about the Noosfero-dev
mailing list