-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Steps to reproduce:
resource = Resource.new(
identifier: Identifier.new(value: '10.5555/12345678'),
creators: [
Creator.new(
name: 'Josiah Carberry',
identifier: NameIdentifier.new(scheme: 'ORCID', scheme_uri: URI('http://orcid.org/'), value: '0000-0002-1825-0097'),
affiliations: 'Department of Psychoceramics, Brown University' # should be an array
)
],
titles: [
Title.new(value: 'Toward a Unified Theory of High-Energy Metaphysics: Silly String Theory')
],
publisher: 'Journal of Psychoceramics',
publication_year: 2008
)
resource.write_xmlExpected:
- error from
Creatorinitializer, or perhaps silent conversion to array
Actual:
- stack trace:
NoMethodError: undefined method `each' for "Department of Psychoceramics, Brown University":String
from /Users/dmoles/.rvm/gems/ruby-2.2.3/gems/xml-mapping-0.10.0/lib/xml/mapping/standard_nodes.rb:285:in `set_attr_value'
Metadata
Metadata
Assignees
Labels
No labels