Skip to content

Commit

Permalink
Simplify XML test
Browse files Browse the repository at this point in the history
  • Loading branch information
miparnisari committed May 30, 2019
1 parent 944f9ae commit 788a3e4
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions spec/lexers/xml_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,7 @@
it 'guesses by source' do
assert_guess :source => '<?xml version="1.0" encoding="utf-8"?>'
assert_guess :source => %{#{bom}<?xml version="1.0" encoding="utf-8"?>}
assert_guess :source => <<-eos
<?xml version="1.0" ?>
<jacoco:report>
<html destdir="${reportfolderPath}" encoding="utf-8" />
<xml destfile="${reportfolderPath}/jacoco_report.xml" encoding="utf-8" />
</jacoco:report>
eos

assert_guess :source => '<?xml version="1.0" ?><html destdir="${reportfolderPath}" encoding="utf-8" />'
assert_guess :source => '<!DOCTYPE xml>'
deny_guess :source => '<!DOCTYPE html>'
end
Expand Down

0 comments on commit 788a3e4

Please sign in to comment.