Sha256: 94377f91de3943b41f1bd5ca603eea59ce45c6e16c731c917cab6986f3e6dd35
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
Feature: Rotation of ASCII text Text can be rotated by 0,90,180,270 degrees. This will affect all text that comes within the rotation section. The rotation happens clockwise Scenario: Rotate text 90 degrees for EPL2 Given a DSL with: """ruby ZebraPrinterDocument.new do language :epl2 rotate :by_90 do text '' end end """ When I execute the DSL Then the output should include "A0,0,1,2,1,1,N,""" Scenario: Rotate text 90 degrees for ZPL2 Given a DSL with: """ruby ZebraPrinterDocument.new do language :zpl2 rotate :by_90 do text '' end end """ When I execute the DSL Then the output should be like "\^CF[A-Z]R,\d+,\d+" Scenario: Late evaluation of rotated text Given code: """ruby a = ZebraPrinterDocument.new a.language :zpl2 label = Proc.new do rotate :by_90 do text '' end end a.process(&label) a.document """ When I execute the code Then the output should be like "\^CF[A-Z]R,\d+,\d+"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zebra_printer-0.1.1 | features/ascii-text-rotation.feature |