Sha256: 4bbd99582f89639c6ac13e57da420794672a2c4079c659c32990a0f9b9858b64

Contents?: true

Size: 389 Bytes

Versions: 16

Compression:

Stored size: 389 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

describe DocTemplate::Objects::BaseMetadata do
  describe '.split_field' do
    let(:content) { parts.join separator }
    let(:parts) { %w(a b c d e) }
    let(:separator) { '-' }

    subject { described_class.split_field content, separator }

    it 'returns splitted string' do
      expect(subject).to eq parts
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
lcms-engine-0.5.5 spec/lib/doc_template/objects/base_metadata_spec.rb
lcms-engine-0.5.4 spec/lib/doc_template/objects/base_metadata_spec.rb
lcms-engine-0.5.3 spec/lib/doc_template/objects/base_metadata_spec.rb
lcms-engine-0.5.2 spec/lib/doc_template/objects/base_metadata_spec.rb
lcms-engine-0.5.1 spec/lib/doc_template/objects/base_metadata_spec.rb
lcms-engine-0.5.0 spec/lib/doc_template/objects/base_metadata_spec.rb
lcms-engine-0.4.2 spec/lib/doc_template/objects/base_metadata_spec.rb
lcms-engine-0.4.1 spec/lib/doc_template/objects/base_metadata_spec.rb
lcms-engine-0.4.0 spec/lib/doc_template/objects/base_metadata_spec.rb
lcms-engine-0.3.1 spec/lib/doc_template/objects/base_metadata_spec.rb
lcms-engine-0.1.4 spec/lib/doc_template/objects/base_metadata_spec.rb
lcms-engine-0.3.0 spec/lib/doc_template/objects/base_metadata_spec.rb
lcms-engine-0.1.3 spec/lib/doc_template/objects/base_metadata_spec.rb
lcms-engine-0.2.0 spec/lib/doc_template/objects/base_metadata_spec.rb
lcms-engine-0.1.2 spec/lib/doc_template/objects/base_metadata_spec.rb
lcms-engine-0.1.0 spec/lib/doc_template/objects/base_metadata_spec.rb