Sha256: 6a452f1cd2a06e16e219b0a9c955212a6ce184b9dd42e01e8070026c70d726f9
Contents?: true
Size: 554 Bytes
Versions: 3
Compression:
Stored size: 554 Bytes
Contents
require 'spec_helper' require 'ostruct' describe Languages::Epl2::Document do let(:document_output) { subject.render.strip } it "starts with N" do expect(document_output).to start_with("N") end it "concat strings" do subject << "hello_world" expect(document_output).to include("hello_world") end it "calls render on objects" do subject << OpenStruct.new(:render => 'hello_world') expect(document_output).to include("hello_world") end it "ends with P1" do expect(document_output).to end_with("P1") end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zebra_printer-0.9.0 | spec/lib/languages/epl2/document_spec.rb |
zebra_printer-0.8.0 | spec/lib/languages/epl2/document_spec.rb |
zebra_printer-0.1.1 | spec/lib/languages/epl2/document_spec.rb |