# frozen_string_literal: true require 'rails_helper' describe FastImage do let(:svg_file) do StringIO.new(<<~SVG) SVG end let(:xml_file) do StringIO.new(<<~XML) XML end it "correctly detects SVG" do expect(FastImage.new(svg_file).type).to eq(:svg) end it "doesn't detect XML starting with