mirror of
https://github.com/awesome-print/awesome_print
synced 2023-03-27 23:22:34 -04:00
Add code coverage to AwesomePrint::Nokogiri when handles a empty NodeSet
This commit is contained in:
parent
4249b7acff
commit
41e40e2bb6
1 changed files with 5 additions and 0 deletions
|
@ -42,4 +42,9 @@ RSpec.describe "AwesomePrint/Nokogiri" do
|
||||||
\e[0m<\e[1;36m/html\e[0m>
|
\e[0m<\e[1;36m/html\e[0m>
|
||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it "handle empty NodeSet" do
|
||||||
|
xml = Nokogiri::XML::NodeSet.new(Nokogiri::XML(''))
|
||||||
|
expect(xml.ai).to eq('[]')
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue