1
0
Fork 0
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:
Mauro George 2015-02-12 19:24:47 -02:00
parent 4249b7acff
commit 41e40e2bb6

View file

@ -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