Sha256: beb650f3357b0066011f8571e6accf540318c06da5a66328d257545d14da3d4f
Contents?: true
Size: 842 Bytes
Versions: 10
Compression:
Stored size: 842 Bytes
Contents
require 'spec_helper' RSpec.describe Prawn::SVG::CSS::FontFamilyParser do describe "#parse" do it "correctly handles quotes and escaping" do tests = { "" => [], "font" => ["font"], "font name, other font" => ["font name", "other font"], "'font name', other font" => ["font name", "other font"], "'font, name', other font" => ["font, name", "other font"], '"font name", other font' => ["font name", "other font"], '"font, name", other font' => ["font, name", "other font"], 'weird \\" name' => ['weird " name'], 'weird\\, name' => ["weird, name"], ' stupid , spacing ' => ["stupid", "spacing"], } tests.each do |string, expected| expect(Prawn::SVG::CSS::FontFamilyParser.parse(string)).to eq expected end end end end
Version data entries
10 entries across 10 versions & 1 rubygems