Skip to content

Commit

Permalink
remove unused file and convert to json and the bibtex
Browse files Browse the repository at this point in the history
  • Loading branch information
kjgarza committed Jul 14, 2020
1 parent 3262d57 commit e322866
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 97 deletions.
96 changes: 0 additions & 96 deletions spec/fixtures/datacite_kernel_3.json

This file was deleted.

3 changes: 2 additions & 1 deletion spec/writers/bibtex_writer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
it "with schema_3" do
# input = fixture_path + "datacite_kernel_3.json"
input = fixture_path + "datacite_schema_3.xml"
subject = Bolognese::Metadata.new(input: input, from: "datacite")
json = Bolognese::Metadata.new(input: input, from: "datacite")
subject = Bolognese::Metadata.new(input: json.meta.to_json, from: "datacite_json")
bibtex = BibTeX.parse(subject.bibtex).to_a(quotes: '').first
expect(bibtex[:bibtex_type].to_s).to eq("misc")
expect(bibtex[:bibtex_key]).to eq("https://doi.org/10.5061/dryad.8515")
Expand Down

0 comments on commit e322866

Please sign in to comment.