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:
parent
94ad7974db
commit
615afb22d8
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue