Sha256: a2d472eb70539efb5c7d1c5bbff9df2719645e67a93dc89b4b688986402577ef

Contents?: true

Size: 446 Bytes

Versions: 48

Compression:

Stored size: 446 Bytes

Contents

require 'spec_helper'

describe Krikri::Harvesters::BasicSaveBehavior do
  it_behaves_like 'a harvest behavior'

  subject { described_class.new(record, activity_uri) }
  let(:record) { double('record') }
  let(:activity_uri) { double('activity URI') }

  describe '#process_record' do
    it 'calls save with activity_uri on the record' do
      expect(record).to receive(:save).with(activity_uri)
      subject.process_record
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
krikri-0.15.2 spec/lib/krikri/harvesters/basic_save_behavior_spec.rb
krikri-0.15.1 spec/lib/krikri/harvesters/basic_save_behavior_spec.rb
krikri-0.15.0 spec/lib/krikri/harvesters/basic_save_behavior_spec.rb
krikri-0.14.0 spec/lib/krikri/harvesters/basic_save_behavior_spec.rb
krikri-0.13.2 spec/lib/krikri/harvesters/basic_save_behavior_spec.rb
krikri-0.13.1 spec/lib/krikri/harvesters/basic_save_behavior_spec.rb
krikri-0.13.0 spec/lib/krikri/harvesters/basic_save_behavior_spec.rb
krikri-0.12.4 spec/lib/krikri/harvesters/basic_save_behavior_spec.rb
krikri-0.12.3 spec/lib/krikri/harvesters/basic_save_behavior_spec.rb
krikri-0.12.1 spec/lib/krikri/harvesters/basic_save_behavior_spec.rb
krikri-0.12.0 spec/lib/krikri/harvesters/basic_save_behavior_spec.rb
krikri-0.12.0.pre.rc.1 spec/lib/krikri/harvesters/basic_save_behavior_spec.rb
krikri-0.11.2 spec/lib/krikri/harvesters/basic_save_behavior_spec.rb
krikri-0.11.1 spec/lib/krikri/harvesters/basic_save_behavior_spec.rb
krikri-0.11.0 spec/lib/krikri/harvesters/basic_save_behavior_spec.rb
krikri-0.10.1 spec/lib/krikri/harvesters/basic_save_behavior_spec.rb
krikri-0.10.0 spec/lib/krikri/harvesters/basic_save_behavior_spec.rb
krikri-0.9.0 spec/lib/krikri/harvesters/basic_save_behavior_spec.rb
krikri-0.8.9 spec/lib/krikri/harvesters/basic_save_behavior_spec.rb
krikri-0.8.8 spec/lib/krikri/harvesters/basic_save_behavior_spec.rb