Permalink
Browse files

[CS] Set the document root in Node specs

  • Loading branch information...
1 parent ae91af3 commit 179226c0bc1a7cd2a04c7d632cb3902a6661b7b0 @benlangfeld committed Apr 2, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 spec/niceogiri/core_ext/nokogiri_spec.rb
@@ -5,6 +5,8 @@
subject { Nokogiri::XML::Node.new 'foo', doc }
+ before { doc.root = subject }
+
it 'aliases #name to #element_name' do
subject.should respond_to :element_name
subject.element_name.should == subject.name

0 comments on commit 179226c

Please sign in to comment.