spec/csl/node_spec.rb in csl-1.0.0.pre1 vs spec/csl/node_spec.rb in csl-1.0.0.pre2
- old
+ new
@@ -90,11 +90,13 @@
end
it 'accepts hash and yields itself to the optional block' do
TextNode.new(:foo => 'bar') { |n| n.text = 'foo' }.to_xml.should == '<text-node foo="bar">foo</text-node>'
end
-
end
+ describe '#pretty_print' do
+ TextNode.new(:foo => 'bar') { |n| n.text = 'foo' }.pretty_print.should == '<text-node foo="bar">foo</text-node>'
+ end
end
end
\ No newline at end of file