diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-08-18 17:13:41 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-08-18 17:22:44 +0200 |
commit | 6426819b6f7af0eff516340ca24d7f8af1cc6397 (patch) | |
tree | 9c0feba9adc9a603312a5a23c39f1ba08643117d /config | |
parent | 6deb9f966eb9a280cc16428ba9324ffc15ea60a8 (diff) |
Fix tests
Diffstat (limited to 'config')
-rw-r--r-- | config/database.yml | 2 | ||||
-rw-r--r-- | config/initializers/rack-mini-profiler.rb | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/config/database.yml b/config/database.yml index da88c65a0..e0df97ad2 100644 --- a/config/database.yml +++ b/config/database.yml @@ -1,6 +1,6 @@ default: &default adapter: postgresql - pool: 15 + pool: 17 timeout: 5000 encoding: unicode diff --git a/config/initializers/rack-mini-profiler.rb b/config/initializers/rack-mini-profiler.rb index 7fd50a9af..01e8aaa15 100644 --- a/config/initializers/rack-mini-profiler.rb +++ b/config/initializers/rack-mini-profiler.rb @@ -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 |