From f0391ccedeb29dd59f31dbfab9c10b2eba9b2189 Mon Sep 17 00:00:00 2001 From: Vitalii Khustochka Date: Wed, 1 May 2024 23:16:18 -0500 Subject: [PATCH] Fix errors happening in tests because of vips. See https://github.com/libvips/ruby-vips/issues/155 --- test/test_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_helper.rb b/test/test_helper.rb index 6316e1db0..96c053355 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,5 +1,9 @@ # frozen_string_literal: true +# Required to prevent vips issues on MacOS +# See https://github.com/libvips/ruby-vips/issues/155 +require "vips" + # In some situations Rails is not yet loaded here, so present? will not work. if ENV["COVERAGE"] && ENV["COVERAGE"] != "" require "simplecov"