put the switch to test environment back in

accidentally removed in 4c2250d

test-plan:
 - have RAILS_ENV=development in your shell
 - run specs
 - they run with RAILS_ENV=test

Change-Id: I6f2baa5ed523535f2c24f3eb26204455717b33fc
Reviewed-on: https://gerrit.instructure.com/27637
Reviewed-by: Zach Pendleton <zachp@instructure.com>
QA-Review: Bryan Madsen <bryan@instructure.com>
Product-Review: Bryan Madsen <bryan@instructure.com>
Tested-by: Bryan Madsen <bryan@instructure.com>
This commit is contained in:
Jacob Fugal 2013-12-18 09:34:57 -07:00
parent 94ad7974db
commit 615afb22d8
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,8 @@
begin; require File.expand_path(File.dirname(__FILE__) + "/../parallelized_specs/lib/parallelized_specs.rb"); rescue LoadError; end
ENV["RAILS_ENV"] = 'test'
require File.expand_path('../../config/environment', __FILE__) unless defined?(Rails)
if CANVAS_RAILS2
require 'spec'