Sha256: e467b44a44a9a055c9a146b48ff9f4d4cdf0a4b169bf98f19b28f56dba891a28

Contents?: true

Size: 809 Bytes

Versions: 2

Compression:

Stored size: 809 Bytes

Contents

Feature: Data

  The DSL needs away of allowing data to be
  referenced


  Scenario: Data given in constructor
    Given some array data
    And a DSL with:
    """ruby
    ZebraPrinterDocument.new(@data) do
      language :zpl2
      text data.first.text
    end
    """
    When I execute the DSL
    Then the output should include "^FDFirst Data^FS"

  Scenario: Data nested in document
    Given some array data
    And a DSL with:
    """ruby
    ZebraPrinterDocument.new(@data) do
      language :zpl2
      rotate :by_90 do
        font(:name => 'H', :size => :normal) do
          position(730,50) do
            barcode :code_128, data.first.barcode, :height => 100
          end
        end
      end
    end
    """    
    When I execute the DSL
    Then the output should include "^FD111111^FS"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
zebra_printer-0.9.0 features/data.feature
zebra_printer-0.8.0 features/data.feature