spec/http2_spec.rb in http2-0.0.13 vs spec/http2_spec.rb in http2-0.0.14
- old
+ new
@@ -106,8 +106,8 @@
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"
+ raise "Expected isgd-var to be valid but it wasnt: '#{isgd}'." if !isgd.match(/^http:\/\/is\.gd\/([A-z\d]+)$/)
end
end
\ No newline at end of file