Permalink
Browse files

Missed these in the previous commit.

  • Loading branch information...
1 parent 6614c72 commit 91d0028bd757ea91d9394d0df4bb3db8cc5803a7 @Empact committed Feb 5, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/roxml/xml/parsers/libxml.rb
  2. +2 −2 test/unit/to_xml_test.rb
@@ -51,7 +51,7 @@ def default_namespace(doc)
default.prefix || 'xmlns' if default
end
- def roxml_search(xml, xpath, roxml_namespaces = {})
+ def search(xml, xpath, roxml_namespaces = {})
if xml.namespaces.default
roxml_namespaces = {:xmlns => namespaces.default.href}.merge(roxml_namespaces)
end
@@ -41,13 +41,13 @@ class TestToXmlWithBlocks < ActiveSupport::TestCase
def test_pagecount_serialized_properly_after_modification
b = Book.from_xml(fixture(:book_valid))
xml = xml_fixture(:book_valid)
- assert_equal '357', xml.roxml_search('pagecount').first.content
+ assert_equal '357', ROXML::XML.search(xml, 'pagecount').first.content
assert_equal 357, b.pages
b.pages = 500
doc = ROXML::XML::Document.new()
doc.root = b.to_xml
- assert_equal '500', doc.roxml_search('pagecount').first.content
+ assert_equal '500', ROXML::XML.search(doc, 'pagecount').first.content
end
end

0 comments on commit 91d0028

Please sign in to comment.