Skip to content

Commit

Permalink
added failing test for #468.
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Jul 5, 2011
1 parent 798d047 commit 816c655
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/xml/test_builder.rb
Expand Up @@ -199,6 +199,17 @@ def test_raw_append_with_instance_eval
assert_equal 'hello', builder.doc.at('/root').content
end

def test_raw_xml_append
builder = Nokogiri::XML::Builder.new do |xml|
xml.root do
xml << '<aaa><bbb/><ccc/></aaa>'
end
end

assert_equal ["aaa"], builder.doc.at_css("root").children.collect(&:name)
assert_equal ["bbb","ccc"], builder.doc.at_css("aaa").children.collect(&:name)
end

def test_cdata
builder = Nokogiri::XML::Builder.new do
root {
Expand Down

0 comments on commit 816c655

Please sign in to comment.