Sha256: 5fcd7abcaffc92d6ae9bb650b5eef411c07049ebf228e4bea11742cb70228da8

Contents?: true

Size: 416 Bytes

Versions: 10

Compression:

Stored size: 416 Bytes

Contents

shared_context 'provenance queries' do
  let(:query) { double('RDF::Query') }
  let(:solution) { double('RDF::Solution') }
  let(:uri) { double('result uri') }

  before do
    allow(Krikri::ProvenanceQueryClient).to receive(:find_by_activity)
      .with(generator_uri).and_return(query)
    allow(query).to receive(:execute).and_return([solution])
    allow(solution).to receive(:record).and_return(uri)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
krikri-0.4.0 spec/support/shared_contexts/provenance_query_client.rb
krikri-0.3.3 spec/support/shared_contexts/provenance_query_client.rb
krikri-0.3.2 spec/support/shared_contexts/provenance_query_client.rb
krikri-0.3.1 spec/support/shared_contexts/provenance_query_client.rb
krikri-0.2.1 spec/support/shared_contexts/provenance_query_client.rb
krikri-0.2.0 spec/support/shared_contexts/provenance_query_client.rb
krikri-0.1.3 spec/support/shared_contexts/provenance_query_client.rb
krikri-0.1.2 spec/support/shared_contexts/provenance_query_client.rb
krikri-0.1.1 spec/support/shared_contexts/provenance_query_client.rb
krikri-0.1.0 spec/support/shared_contexts/provenance_query_client.rb