Sha256: a4299aef25785b4433a6d2f6e06198ab4a3d9eba84c41946533bbc0a2178d80b
Contents?: true
Size: 620 Bytes
Versions: 3
Compression:
Stored size: 620 Bytes
Contents
require 'spec_helper' describe Languages::Zpl2::Barcode1D do context "code 128" do it "#render" do font = Languages::Zpl2::Font.new barcode = Languages::Zpl2::Barcode1D.new :code_128, :font => font, :text => 'hello_world' expect(barcode.render).to eq("^BCN,#{font.height*2},Y,N,N^FDhello_world^FS") end end context "ean13" do it "#render" do font = Languages::Zpl2::Font.new barcode = Languages::Zpl2::Barcode1D.new :ean13, :font => font, :text => 'hello_world' expect(barcode.render).to eq("^BEN,#{font.height*2},Y,N,N^FDhello_world^FS") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zebra_printer-0.9.0 | spec/lib/languages/zpl2/barcode1d_spec.rb |
zebra_printer-0.8.0 | spec/lib/languages/zpl2/barcode1d_spec.rb |
zebra_printer-0.1.1 | spec/lib/languages/zpl2/barcode1d_spec.rb |