spec/butternut/formatter_spec.rb in butternut-0.2.0 vs spec/butternut/formatter_spec.rb in butternut-0.2.1

- old
+ new

@@ -109,12 +109,12 @@ foo.should include("url(facepalm.jpg)") File.join(@tmp_dir, "output", "facepalm.jpg").should be_an_existing_file end it "turns off links" do - @page_doc.css('a').each do |link| - link['href'].should == "#" - end + link = @page_doc.at('a') + link['href'].should == "#" + link.inner_html.should == "Picard song" end it "turns off scripts" do @page_doc.css('script').length.should == 0 end