Sha256: 73e4f8a77b0914b0a28cf83f69574cc482b081fb98157ea592b1379a27f728c6
Contents?: true
Size: 796 Bytes
Versions: 8
Compression:
Stored size: 796 Bytes
Contents
require 'spec_helper' require 'sufia/controlled_vocabulary/importer/language' RSpec.describe Sufia::ControlledVocabulary::Importer::Language do before do allow(Rails.logger).to receive(:extend) allow(Sufia::ControlledVocabulary::Importer::Downloader).to receive(:fetch) allow(instance).to receive(:system) do allow($CHILD_STATUS).to receive(:success?).and_return(true) end end let(:instance) { described_class.new } let(:rdf_path) { Gem.loaded_specs['sufia'].full_gem_path + "/.internal_test_app/tmp/lexvo_2013-02-09.rdf" } it "imports stuff" do expect(Qa::Services::RDFAuthorityParser).to receive(:import_rdf).with( 'languages', [rdf_path], format: 'rdfxml', predicate: RDF::Vocab::SKOS.prefLabel ) instance.import end end
Version data entries
8 entries across 8 versions & 1 rubygems