diff --git a/umich_catalog_indexing/spec/support/traject_settings.rb b/umich_catalog_indexing/spec/support/traject_settings.rb index f928b288..bf5f0540 100644 --- a/umich_catalog_indexing/spec/support/traject_settings.rb +++ b/umich_catalog_indexing/spec/support/traject_settings.rb @@ -1,32 +1,31 @@ $:.unshift "#{File.dirname(__FILE__)}/../lib" -require 'library_stdnums' +require "library_stdnums" -require 'traject/macros/marc21' +require "traject/macros/marc21" extend Traject::Macros::Marc21 -require 'traject/macros/marc21_semantics' +require "traject/macros/marc21_semantics" extend Traject::Macros::Marc21Semantics -require 'traject/macros/marc_format_classifier' +require "traject/macros/marc_format_classifier" extend Traject::Macros::MarcFormats -require 'ht_traject' +require "ht_traject" extend HathiTrust::Traject::Macros extend Traject::UMichFormat::Macros require "traject/null_writer" -require 'marc_record_speed_monkeypatch' -require 'marc4j_fix' - -UmichOverlap = if ENV['NODB'] - require "ht_traject/no_db_mocks/ht_overlap" - HathiTrust::NoDB::UmichOverlap - else - require 'ht_traject/ht_overlap.rb' - HathiTrust::UmichOverlap - end +require "marc_record_speed_monkeypatch" +require "marc4j_fix" +UmichOverlap = if ENV["NODB"] + require "ht_traject/no_db_mocks/ht_overlap" + HathiTrust::NoDB::UmichOverlap +else + require "ht_traject/ht_overlap" + HathiTrust::UmichOverlap +end settings do store "writer_class_name", "Traject::NullWriter"