Sha256: 11d3abe27899313e3aee739722c08b7741361a98417beba0f765dca179c52a87
Contents?: true
Size: 594 Bytes
Versions: 6
Compression:
Stored size: 594 Bytes
Contents
# frozen_string_literal: true RSpec.shared_examples 'a Valkyrie::MetadataAdapter' do |passed_adapter| before do raise 'adapter must be set with `let(:adapter)`' unless defined? adapter end subject { passed_adapter || adapter } it { is_expected.to respond_to(:persister).with(0).arguments } it { is_expected.to respond_to(:query_service).with(0).arguments } it "caches query_service so it can register custom queries" do expect(subject.query_service.custom_queries.query_handlers.object_id).to eq subject.query_service.custom_queries.query_handlers.object_id end end
Version data entries
6 entries across 6 versions & 1 rubygems