Sha256: d9d065afdb52798e8e03812e78c62e0e0ffdc26c7b6bfc491ed01d74693a0739
Contents?: true
Size: 993 Bytes
Versions: 2
Compression:
Stored size: 993 Bytes
Contents
require 'spec_helper' describe USPSFlags::Generate do it "should generate a flag with the correct size" do expect(USPSFlags::Generate.get("LtC", outfile: "")).to include("width=\"1024pt\" height=\"682pt\" viewBox=\"0 0 3072 2048\"") end it "should generate a flag with the correct field" do expect(USPSFlags::Generate.get("LtC", outfile: "")).to include( <<~SVG <path d="M 0 0 l 3072 0 l 0 2048 l -3072 0 l 0 -2048 " fill="#BF0D3E" /> SVG ) end it "should generate a flag with the correct starting position" do expect(USPSFlags::Generate.get("LtC", outfile: "")).to include("<path d=\"M 1536 512") end it "should generate a flag with the correct trident transformations" do expect(USPSFlags::Generate.get("LtC", outfile: "")).to include("<g transform=\"translate(-512)\">") expect(USPSFlags::Generate.get("LtC", outfile: "")).to include("<g transform=\"translate(512)\">") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
usps_flags-0.1.26 | spec/usps_flags/generate_spec.rb |
usps_flags-0.1.25 | spec/usps_flags/generate_spec.rb |