Sha256: 152315e8164fe56226020b1b5224518e79e3eb1c2733782a28650ed2aa1e6612
Contents?: true
Size: 650 Bytes
Versions: 2
Compression:
Stored size: 650 Bytes
Contents
require 'uri' #I'm more or less ok with these limited tests, as the more extensive extract tests #use URI.regexp describe "URI.regexp" do it "behaves according to the MatzRuby tests" do URI.regexp.should == URI.regexp 'x http:// x'.slice(URI.regexp).should == 'http://' 'x http:// x'.slice(URI.regexp(['http'])).should == 'http://' 'x http:// x ftp://'.slice(URI.regexp(['http'])).should == 'http://' 'http://'.slice(URI.regexp([])).should == nil ''.slice(URI.regexp).should == nil 'xxxx'.slice(URI.regexp).should == nil ':'.slice(URI.regexp).should == nil 'From:'.slice(URI.regexp).should == 'From:' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubysl-uri-1.0.0 | spec/regexp_spec.rb |
rubysl-uri-2.0.0 | spec/regexp_spec.rb |