rename span from todo since it now works
[catagits/HTML-Zoom.git] / t / span.t
diff --git a/t/span.t b/t/span.t
new file mode 100644 (file)
index 0000000..887ba40
--- /dev/null
+++ b/t/span.t
@@ -0,0 +1,6 @@
+use HTML::Zoom;
+use Test::More tests => 1;
+
+my $zoom = HTML::Zoom->from_html('<p>Hello my name is <span id="name" /></p>');
+my $html = $zoom->select('#name')->replace_content('Foo foo')->to_html;
+is($html, '<p>Hello my name is <span id="name">Foo foo</span></p>');