Sha256: 53e2ae4f2ca4fd408057bc909892c08b9c10b4610ba71d30fb06196f7121b78a
Contents?: true
Size: 686 Bytes
Versions: 24
Compression:
Stored size: 686 Bytes
Contents
require 'spec_helper' RSpec.describe Component, type: :model, components: true do it_behaves_like "a DDR model" it_behaves_like "an object that can have content" it_behaves_like "it has an association", :belongs_to, :parent, :is_part_of, "Item" it_behaves_like "it has an association", :belongs_to, :target, :has_external_target, "Target" it_behaves_like "a non-collection model" describe "indexing" do subject { FactoryGirl.build(:component) } before do allow(subject).to receive(:collection) { Collection.new(pid: "test:1") } end its(:index_fields) { is_expected.to include(Ddr::Index::Fields::COLLECTION_URI => "info:fedora/test:1") } end end
Version data entries
24 entries across 24 versions & 1 rubygems