Sha256: 3c054b8829e09016379b07df5b8f083914196ba5c277a0628bf8df8e210a7091

Contents?: true

Size: 822 Bytes

Versions: 10

Compression:

Stored size: 822 Bytes

Contents

require 'spec_helper'
require 'hyrax/controlled_vocabulary/importer/language'

RSpec.describe Hyrax::ControlledVocabulary::Importer::Language do
  before do
    allow(Rails.logger).to receive(:extend)
    allow(Hyrax::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['hyrax'].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::URI('http://www.w3.org/2008/05/skos#prefLabel')
    )
    instance.import
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
hyrax-1.1.1 spec/lib/hyrax/controlled_vocabulary/importer/language_spec.rb
hyrax-1.1.0 spec/lib/hyrax/controlled_vocabulary/importer/language_spec.rb
hyrax-1.0.5 spec/lib/hyrax/controlled_vocabulary/importer/language_spec.rb
hyrax-1.0.4 spec/lib/hyrax/controlled_vocabulary/importer/language_spec.rb
hyrax-1.0.3 spec/lib/hyrax/controlled_vocabulary/importer/language_spec.rb
hyrax-1.0.2 spec/lib/hyrax/controlled_vocabulary/importer/language_spec.rb
hyrax-1.0.1 spec/lib/hyrax/controlled_vocabulary/importer/language_spec.rb
hyrax-1.0.0.rc2 spec/lib/hyrax/controlled_vocabulary/importer/language_spec.rb
hyrax-1.0.0.rc1 spec/lib/hyrax/controlled_vocabulary/importer/language_spec.rb
test_hyrax-0.0.1.alpha spec/lib/hyrax/controlled_vocabulary/importer/language_spec.rb