spec/awestruct/context_helper_spec.rb in awestruct-0.5.6.beta3 vs spec/awestruct/context_helper_spec.rb in awestruct-0.5.6.beta4

- old
+ new

@@ -79,17 +79,15 @@ @tester.fully_qualify_urls('http://foobar.com', str).should == "<a href=\"http://foobar.com/foo\">foobar</a>" end it "should fix link tags" do str = "<link href='/foo' />" - #nokogiri html doesn't close optional ending tags - @tester.fully_qualify_urls('http://foobar.com', str).should == "<link href=\"http://foobar.com/foo\">" + @tester.fully_qualify_urls('http://foobar.com', str).should == "<link href=\"http://foobar.com/foo\"/>" end it "should fix image tags" do str = "<img src='/foo' />" - #nokogiri html doesn't close optional ending tags - @tester.fully_qualify_urls('http://foobar.com', str).should == "<img src=\"http://foobar.com/foo\">" + @tester.fully_qualify_urls('http://foobar.com', str).should == "<img src=\"http://foobar.com/foo\"/>" end it "should leave anchor tags with no href attribute (for page anchors) unchanged" do str = "<a target=\"#foo\">foobar</a>" @tester.fully_qualify_urls('http://foobar.com', str).should == str