Sha256: eece2ec2df63d2822cf80a324b21c81927e425ac0c3ae23936a5af737a217dfb
Contents?: true
Size: 440 Bytes
Versions: 49
Compression:
Stored size: 440 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
49 entries across 49 versions & 2 rubygems