about summary refs log tree commit diff
path: root/config/initializers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-08-18 17:13:41 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-08-18 17:22:44 +0200
commit6426819b6f7af0eff516340ca24d7f8af1cc6397 (patch)
tree9c0feba9adc9a603312a5a23c39f1ba08643117d /config/initializers
parent6deb9f966eb9a280cc16428ba9324ffc15ea60a8 (diff)
Fix tests
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/rack-mini-profiler.rb6
1 files changed, 4 insertions, 2 deletions
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