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

Version Path
zebra-zpl-1.1.4 spec/zebra/zpl/comment_spec.rb
zebra-zpl-1.1.3 spec/zebra/zpl/comment_spec.rb
zebra-zpl-1.1.2 spec/zebra/zpl/comment_spec.rb
zebra-zpl-1.1.1 spec/zebra/zpl/comment_spec.rb
zebra-zpl-1.1.0 spec/zebra/zpl/comment_spec.rb