spec/http2_spec.rb in http2-0.0.4 vs spec/http2_spec.rb in http2-0.0.5

- old
+ new

@@ -88,6 +88,11 @@ #print "Doing request #{count} of 200 (#{url}).\n" #res = http.get(url) #raise "Body was empty." if res.body.to_s.length <= 0 end end + + it "should be able to convert URL's to 'is.gd'-short-urls" do + isgd = Http2.isgdlink("https://github.com/kaspernj/http2") + raise "Expected isgd-var to be 'http://is.gd/Z7kHSl' but it wasnt: '#{isgd}'." if isgd != "http://is.gd/Z7kHSl" + end end \ No newline at end of file