lib/capybara/screenshot/diff/drivers/utils.rb in capybara-screenshot-diff-1.8.0 vs lib/capybara/screenshot/diff/drivers/utils.rb in capybara-screenshot-diff-1.8.1
- old
+ new
@@ -8,14 +8,16 @@
result = []
begin
result << :vips if defined?(Vips) || require("vips")
rescue LoadError
# vips not present
+ Object.send(:remove_const, :Vips) if defined?(Vips)
end
begin
result << :chunky_png if defined?(ChunkyPNG) || require("chunky_png")
rescue LoadError
# chunky_png not present
+ Object.send(:remove_const, :ChunkyPNG) if defined?(ChunkyPNG)
end
result
end
def self.find_driver_class_for(driver)