diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-01-12 13:21:14 +0000 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-01-12 13:21:14 +0000 |
commit | 0440a663aef77c4a4bbcd96d506748a09057757a (patch) | |
tree | 92f0577868ad7ee6164cea893ff5e53dbdba023a | |
parent | 21ee1ca03faa722119a3c7e587a843b960783096 (diff) |
Force rails_env always to be test. The previous setting caused me to drop production databases by accident more than once....
-rw-r--r-- | spec/spec_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 9bf752c99..6c3a947ba 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,6 +1,6 @@ # This file is copied to ~/spec when you run 'ruby script/generate rspec' # from the project root directory. -ENV["RAILS_ENV"] ||= 'test' +ENV["RAILS_ENV"] = 'test' require File.expand_path(File.join('..', '..', 'config', 'environment'), __FILE__) require 'spec/autorun' require 'spec/rails' |