Sha256: e4f0e82b132a97ccc469b7ee3ad8cd2778818e8dab412efdc13d3f8755fc8698

Contents?: true

Size: 639 Bytes

Versions: 29

Compression:

Stored size: 639 Bytes

Contents

##
# Shared context for queries that find entities (i.e. records) affected
# by an Activity.
#
# See 'provenance queries' shared context
#
shared_context 'entities query' do
  # aggregation comes from lib/dpla/map/factories.rb in DPLA::MAP
  let(:aggregation) { build(:aggregation) }

  before do
    DatabaseCleaner.clean_with(:truncation)
    create(:krikri_harvest_activity)
    create(:krikri_mapping_activity)
    create(:krikri_enrichment_activity)
    allow(DPLA::MAP::Aggregation).to receive(:new)
      .with(solution.record.to_s)
      .and_return(aggregation)
    allow(aggregation).to receive(:get).and_return(true)
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
krikri-0.10.1 spec/support/shared_contexts/entities_query.rb
krikri-0.10.0 spec/support/shared_contexts/entities_query.rb
krikri-0.9.0 spec/support/shared_contexts/entities_query.rb
krikri-0.8.9 spec/support/shared_contexts/entities_query.rb
krikri-0.8.8 spec/support/shared_contexts/entities_query.rb
krikri-0.8.7 spec/support/shared_contexts/entities_query.rb
krikri-0.8.6 spec/support/shared_contexts/entities_query.rb
krikri-0.8.5 spec/support/shared_contexts/entities_query.rb
krikri-0.8.4 spec/support/shared_contexts/entities_query.rb
krikri-0.8.3 spec/support/shared_contexts/entities_query.rb
krikri-0.8.2 spec/support/shared_contexts/entities_query.rb
krikri-0.8.1 spec/support/shared_contexts/entities_query.rb
krikri-0.8.0 spec/support/shared_contexts/entities_query.rb
krikri-0.7.6 spec/support/shared_contexts/entities_query.rb
krikri-0.7.5 spec/support/shared_contexts/entities_query.rb
krikri-0.7.4 spec/support/shared_contexts/entities_query.rb
krikri-0.7.3 spec/support/shared_contexts/entities_query.rb
krikri-0.7.2 spec/support/shared_contexts/entities_query.rb
krikri-0.7.1 spec/support/shared_contexts/entities_query.rb
krikri-0.7.0 spec/support/shared_contexts/entities_query.rb