Sha256: 16ee8fb7b7348a0f01fca5e37029a303d0deffc7b54eed052b62e473d1aab62b
Contents?: true
Size: 475 Bytes
Versions: 5
Compression:
Stored size: 475 Bytes
Contents
require 'spec_helper' describe Zebra::Zpl::Comment do it "can be initialized with the data" do comment = described_class.new data: "THIS IS A COMMENT" expect(comment.data).to eq "THIS IS A COMMENT" end describe "#to_zpl" do subject(:comment) { described_class.new attributes } let(:attributes) {{ data: "THIS IS A COMMENT", }} it "contains the comment" do expect(comment.to_zpl).to eq "^FXTHIS IS A COMMENT^FS" end end end
Version data entries
5 entries across 5 versions & 1 rubygems