spec/lib/microformats2_spec.rb in microformats2-2.0.0.pre4 vs spec/lib/microformats2_spec.rb in microformats2-2.0.0.pre5

- old
+ new

@@ -21,9 +21,12 @@ it "can be a file path to html" do html = "spec/support/lib/microformats2/simple.html" Microformats2.read_html(html).should include "<div class=\"h-card\">" end it "can be a url to html" do + stub_request(:get, "http://google.com/"). + with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}). + to_return(:status => 200, :body => "google", :headers => {}) html = "http://google.com" Microformats2.read_html(html).should include "google" end end end