From cb2fb955426e089cc43d456a066b602232168bdf Mon Sep 17 00:00:00 2001 From: Richard Hallett Date: Tue, 20 Apr 2021 13:16:15 +0200 Subject: [PATCH] Update spec errors --- spec/metadata_spec.rb | 2 +- spec/readers/datacite_json_reader_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/metadata_spec.rb b/spec/metadata_spec.rb index e31c89d4..cd87b483 100644 --- a/spec/metadata_spec.rb +++ b/spec/metadata_spec.rb @@ -153,7 +153,7 @@ it "missing_comma" do json = IO.read(fixture_path + "datacite_software_missing_comma.json") response = subject.jsonlint(json) - expect(response).to eq(["expected comma, not a string (after doi) at line 4, column 11 [parse.c:364]"]) + expect(response).to eq(["expected comma, not a string (after doi) at line 4, column 11 [parse.c:388]"]) end it "overlapping_keys" do diff --git a/spec/readers/datacite_json_reader_spec.rb b/spec/readers/datacite_json_reader_spec.rb index bdea90e0..6c98409f 100644 --- a/spec/readers/datacite_json_reader_spec.rb +++ b/spec/readers/datacite_json_reader_spec.rb @@ -46,7 +46,7 @@ input = fixture_path + "datacite_software_missing_comma.json" subject = Bolognese::Metadata.new(input: input, from: "datacite_json", show_errors: true) expect(subject.valid?).to be false - expect(subject.errors).to eq(["expected comma, not a string (after doi) at line 4, column 11 [parse.c:364]"]) + expect(subject.errors).to eq(["expected comma, not a string (after doi) at line 4, column 11 [parse.c:388]"]) expect(subject.codemeta).to be_nil end