Sha256: 0b91fe0263f60f26326ab5a023bee9b3b391cf85916c2e1ce3a4db9f92be629b
Contents?: true
Size: 441 Bytes
Versions: 30
Compression:
Stored size: 441 Bytes
Contents
describe "Literal Regexps" do it "yields a Regexp" do /Hello/.should be_kind_of(Regexp) end end describe "Regexps with interpolation" do it "allows interpolation of strings" do str = "foo|bar" /#{str}/.should == /foo|bar/ end it "allows interpolation to interact with other Regexp constructs" do str = "foo)|(bar" /(#{str})/.should == /(foo)|(bar)/ str = "a" /[#{str}-z]/.should == /[a-z]/ end end
Version data entries
30 entries across 30 versions & 2 rubygems