Skip to content

Commit

Permalink
Update nokigiri error message specs
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhallett committed May 26, 2021
1 parent 7a41493 commit 53e1b6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/concerns/crosscitable_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
string = file_fixture("datacite_malformed.xml").read
expect { subject.clean_xml(string) }.to raise_error(
Nokogiri::XML::SyntaxError,
"39:18: FATAL: EndTag: '</' not found",
/FATAL: Premature end of data in tag resource/,
)
end

Expand Down Expand Up @@ -51,7 +51,7 @@
string = file_fixture("datacite_malformed.xml").read
expect { subject.from_xml(string) }.to raise_error(
Nokogiri::XML::SyntaxError,
"40:1: FATAL: EndTag: '</' not found",
/FATAL: Premature end of data in tag resource/,
)
end
end
Expand Down Expand Up @@ -97,7 +97,7 @@
string = file_fixture("datacite_malformed.xml").read
expect { subject.well_formed_xml(string) }.to raise_error(
Nokogiri::XML::SyntaxError,
"40:1: FATAL: EndTag: '</' not found",
/FATAL: Premature end of data in tag resource/,
)
end

Expand Down

0 comments on commit 53e1b6f

Please sign in to comment.