Skip to content

Commit

Permalink
Update spec errors
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhallett committed Apr 20, 2021
1 parent 784efa7 commit cb2fb95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/metadata_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/readers/datacite_json_reader_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit cb2fb95

Please sign in to comment.