* fixing test that failed on build server

This commit is contained in:
Seth Call 2014-07-30 17:29:26 -05:00
parent a11ae44a90
commit 2aab3c902d
2 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ describe GenericState do
it "no emails if database is production and env is production, no build number" do
database_env('production')
rails_env('production')
stub_const("ENV", {'BUILD_NUMBER' => nil})
GenericState.allow_emails?.should be_false
end

View File

@ -1,7 +1,7 @@
Resque.redis = Rails.application.config.redis_host
if !$rails_rake_task && Rails.env == 'development' && ENV['RUN_JOBS_INLINE'] == '1'
if !$rails_rake_task && Rails.env == 'development' && (ENV['RUN_JOBS_INLINE'] == '1' || ENV['RUN_INLINE_JOBS'] == '1')
Thread.new do
system('INTERVAL=1 bundle exec rake all_jobs')