Sha256: a6e50b0daeffeb40a38b67f2b0841f81fc39122a8477506353cc255f5f8011a4

Contents?: true

Size: 757 Bytes

Versions: 8

Compression:

Stored size: 757 Bytes

Contents

require 'spec_helper'

describe USPSFlags::Generate do
  it "should get the correct flag" do
    expect(USPSFlags::Generate.get("LtC", outfile: "")).to include("width=\"1024pt\" height=\"682pt\" viewBox=\"0 0 3072 2048\"")
    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
    )
    expect(USPSFlags::Generate.get("LtC", outfile: "")).to include("<path d=\"M 1536 512")
    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

8 entries across 8 versions & 1 rubygems

Version Path
usps_flags-0.1.24 spec/usps_flags/generate_spec.rb
usps_flags-0.1.23 spec/usps_flags/generate_spec.rb
usps_flags-0.1.22 spec/usps_flags/generate_spec.rb
usps_flags-0.1.21 spec/usps_flags/generate_spec.rb
usps_flags-0.1.20 spec/usps_flags/generate_spec.rb
usps_flags-0.1.19 spec/usps_flags/generate_spec.rb
usps_flags-0.1.18 spec/usps_flags/generate_spec.rb
usps_flags-0.1.17 spec/usps_flags/generate_spec.rb