Sha256: 3b041dd7c7bbf66b848fe84a514372cae8d52611f8a1d9a94dbd78b0437d1b3f

Contents?: true

Size: 884 Bytes

Versions: 1

Compression:

Stored size: 884 Bytes

Contents

require 'spec_helper'

describe ZebraPrinterDocument do
  context "language :epl2" do
    before :each do
      subject.language :epl2
    end
    
    it "language_processor is correct" do
      expect(subject.language_processor).to be_a Languages::Epl2
    end

    context "DSL" do
      [:text, :barcode, :position, :font, :rotate].each do |method|
        it "#{method.to_s}" do
          expect(subject).to respond_to method
        end
      end
    end

  end

  context "language :zpl2" do
    before :each do
      subject.language :zpl2
    end
    
    it "language_processor is correct" do
      expect(subject.language_processor).to be_a Languages::Zpl2
    end

    context "DSL" do
      [:text, :barcode, :position, :font, :rotate].each do |method|
        it "#{method.to_s}" do
          expect(subject).to respond_to method
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zebra_printer-0.1.1 spec/lib/zebra_printer_document.rb