* fixing test that failed on build server
This commit is contained in:
parent
a11ae44a90
commit
2aab3c902d
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in New Issue