Fix tests

This commit is contained in:
Eugen Rochko
2016-08-18 17:13:41 +02:00
parent 6deb9f966e
commit 6426819b6f
6 changed files with 18 additions and 6 deletions

View File

@ -1,6 +1,6 @@
default: &default
adapter: postgresql
pool: 15
pool: 17
timeout: 5000
encoding: unicode

View File

@ -1,2 +1,4 @@
Rails.application.middleware.swap(Rack::Deflater, Rack::MiniProfiler)
Rails.application.middleware.swap(Rack::MiniProfiler, Rack::Deflater)
unless Rails.env == 'test'
Rails.application.middleware.swap(Rack::Deflater, Rack::MiniProfiler)
Rails.application.middleware.swap(Rack::MiniProfiler, Rack::Deflater)
end