spec/butternut/formatter_spec.rb in butternut-0.0.0 vs spec/butternut/formatter_spec.rb in butternut-0.0.1

- old
+ new

@@ -263,10 +263,11 @@ file.should match(%r{^/features/#{Date.today.to_s}/butternut.+\.html}) end it "saves images and stylesheets and rewrites urls in page source" do @page_doc.at('img')['src'].should == "picard.jpg" - @page_doc.at('link[rel="stylesheet"]')['href'].should == "foo.css" + @page_doc.at('link:first[rel="stylesheet"]')['href'].should == "foo.css" + @page_doc.at('link:last[rel="stylesheet"]')['href'].should == "bar.css" end it "turns off links" do @page_doc.css('a').each do |link| link['href'].should == "#"