Skip to content

Commit

Permalink
update test: expected value first
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed May 28, 2016
1 parent c7ff768 commit 1db9bbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/xml/test_reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -580,9 +580,9 @@ def test_correct_inner_xml_inclusion
def test_nonexistent_attribute
require 'nokogiri'
reader = Nokogiri::XML::Reader("<root xmlns='bob'><el attr='fred' /></root>")
reader.read
reader.read
assert_equal reader.attribute('other'), nil
reader.read # root
reader.read # el
assert_equal nil, reader.attribute('other')
end
end
end
Expand Down

0 comments on commit 1db9bbd

Please sign in to comment.