lib/capybara/screenshot/diff/drivers/vips_driver.rb in capybara-screenshot-diff-1.8.0 vs lib/capybara/screenshot/diff/drivers/vips_driver.rb in capybara-screenshot-diff-1.8.1
- old
+ new
@@ -1,10 +1,10 @@
# frozen_string_literal: true
begin
require "vips"
rescue LoadError => e
- warn 'Required ruby-vips gem is missing. Add `gem "ruby-vips"` to Gemfile' if e.message.include?("vips")
+ raise 'Required ruby-vips gem is missing. Add `gem "ruby-vips"` to Gemfile' if e.message.match?(/vips/i)
raise
end
require "capybara/screenshot/diff/drivers/base_driver"