Skip to content
Snippets Groups Projects
Commit 0aded9ed authored by Lucas Gabriel Lima's avatar Lucas Gabriel Lima
Browse files

add more tests to institution importer

parent 59eb87f6
No related branches found
No related tags found
No related merge requests found
......@@ -53,3 +53,12 @@ lo_complete:
id_dspace: '1'
object_type: image
language: portuguese
lo_metadata:
name: 'Institution Object 1'
description: 'Testing'
author: 'Mauricio'
id_dspace: '2'
object_type: image
language: portuguese
metadata: '[{"key": "dc.creator", "value": "ufpr", "language": "nil"}]'
......@@ -10,4 +10,12 @@ class InstitutionImporterTest < ActiveSupport::TestCase
assert_not_nil Institution.find_by_name(lo.publisher.name)
end
test 'importing learning object with metadata publisher != nil' do
importer = InstitutionImporter.new()
lo = learning_objects(:lo_metadata)
importer.items = [lo]
importer.import
assert_not_nil Institution.find_by_name(lo.publisher.name)
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment