spec/hydra/pcdm/pcdm_indexer_spec.rb in hydra-pcdm-0.11.0 vs spec/hydra/pcdm/pcdm_indexer_spec.rb in hydra-pcdm-1.0.0

- old
+ new

@@ -1,10 +1,10 @@ require 'spec_helper' describe Hydra::PCDM::PCDMIndexer do let(:collection) { Hydra::PCDM::Collection.new } - let(:member_ids) { %w(123 456 789) } + let(:member_ids) { %w[123 456 789] } let(:indexer) { described_class.new(collection) } let(:collection1) { Hydra::PCDM::Collection.new(id: 'abc') } let(:collection2) { Hydra::PCDM::Collection.new(id: 'def') } before do @@ -14,10 +14,10 @@ describe '#generate_solr_document' do subject { indexer.generate_solr_document } it 'has fields' do - expect(subject[Hydra::PCDM::Config.indexing_member_ids_key]).to eq %w(123 456 789) - expect(subject[Hydra::PCDM::Config.indexing_member_of_collection_ids_key]).to eq %w(abc def) + expect(subject[Hydra::PCDM::Config.indexing_member_ids_key]).to eq %w[123 456 789] + expect(subject[Hydra::PCDM::Config.indexing_member_of_collection_ids_key]).to eq %w[abc def] end end end