Sha256: 9e3b44850e8d7c448d08e6bf8e33897e08bb7d241564a2fb4b91c5ca02ad3644

Contents?: true

Size: 486 Bytes

Versions: 3

Compression:

Stored size: 486 Bytes

Contents

require 'spec_helper'

describe Audumbla::FieldEnrichment do
  subject { enrichment_class.new }

  let(:enrichment_class) { Class.new { include Audumbla::FieldEnrichment } }

  context 'with implementation' do
    before { allow(subject).to receive(:enrich_value).and_return('moomin') }

    it_behaves_like 'a field enrichment'
  end

  describe '#enrich_value' do
    it 'is abstract' do
      expect { subject.enrich_value(nil) }.to raise_error NotImplementedError
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
audumbla-0.2.1 spec/lib/audumbla/field_enrichment_spec.rb
audumbla-0.2.0 spec/lib/audumbla/field_enrichment_spec.rb
audumbla-0.1.0 spec/lib/audumbla/field_enrichment_spec.rb