Commit f88ca472dc4a613d06d7009430a1999e91052204
1 parent
ef4af465
Exists in
master
and in
18 other branches
cucumber: ensure rails_env is test if not passed
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
features/support/env.rb
@@ -4,6 +4,8 @@ | @@ -4,6 +4,8 @@ | ||
4 | # instead of editing this one. Cucumber will automatically load all features/**/*.rb | 4 | # instead of editing this one. Cucumber will automatically load all features/**/*.rb |
5 | # files. | 5 | # files. |
6 | 6 | ||
7 | +ENV["RAILS_ENV"] ||= "test" | ||
8 | + | ||
7 | require File.expand_path(File.dirname(__FILE__) + '/../../config/environment') | 9 | require File.expand_path(File.dirname(__FILE__) + '/../../config/environment') |
8 | require 'cucumber/rails' | 10 | require 'cucumber/rails' |
9 | 11 |