]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'upstream/pull/1797'
authorTom Hughes <tom@compton.nu>
Wed, 28 Mar 2018 16:33:01 +0000 (17:33 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 28 Mar 2018 16:33:01 +0000 (17:33 +0100)
config/application.rb
config/image_optim/test.yml [new file with mode: 0644]
test/application_system_test_case.rb

index 9ba122dafb8b1518af4930f92ceec945befff7ec..b6e2ba46788c14d6342e934f31a0364b9e83c43c 100644 (file)
@@ -43,8 +43,5 @@ module OpenStreetMap
       config.logstasher.logger_path = LOGSTASH_PATH
       config.logstasher.log_controller_parameters = true
     end
-
-    # Configure image optimisation
-    config.assets.image_optim = YAML.load_file(Rails.root.join("config", "image_optim.yml"))
   end
 end
diff --git a/config/image_optim/test.yml b/config/image_optim/test.yml
new file mode 100644 (file)
index 0000000..00584e5
--- /dev/null
@@ -0,0 +1,11 @@
+skip_missing_workers: true
+advpng: false
+gifsicle: false
+jhead: false
+jpegoptim: false
+jpegtran: false
+optipng: false
+pngquant: false
+pngout: false
+pngcrush: false
+svgo: false
index 18d5ec2f7dc41c9a010b43757042e524e6796c4d..9abc7aa708861fff56257afbde1ba3017c38a33f 100644 (file)
@@ -4,6 +4,8 @@ require "capybara/poltergeist"
 WebMock.disable_net_connect!(:allow_localhost => true)
 
 class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
+  ActionDispatch::SystemTesting::Server.silence_puma = true
+
   driven_by :poltergeist, :screen_size => [1400, 1400]
 
   def initialize(*args)