Sha256: df93361cd2963d5a721e9a1f44e21ab08b47bb56ceaf87c34fe271c7ce727ede

Contents?: true

Size: 385 Bytes

Versions: 27

Compression:

Stored size: 385 Bytes

Contents

shared_examples 'a harvest behavior' do
  subject { described_class.new() }

  describe '.process_record' do
    it 'passes args and call to instance' do
      instance = double('behavior instance')
      expect(described_class).to receive(:new).with(record, activity_uri)
                                  .and_return(instance)
      described_class.process_record
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
krikri-0.5.7 spec/support/shared_examples/harvest_behavior.rb~
krikri-0.5.6 spec/support/shared_examples/harvest_behavior.rb~
krikri-0.5.5 spec/support/shared_examples/harvest_behavior.rb~
krikri-0.4.0 spec/support/shared_examples/harvest_behavior.rb~
krikri-0.3.3 spec/support/shared_examples/harvest_behavior.rb~
krikri-0.3.2 spec/support/shared_examples/harvest_behavior.rb~
krikri-0.3.1 spec/support/shared_examples/harvest_behavior.rb~