Sha256: 13d7ed892d1fcb2b831e10551afdb679f570844244ace334943f2ca7ed49f6e3
Contents?: true
Size: 400 Bytes
Versions: 52
Compression:
Stored size: 400 Bytes
Contents
require File.expand_path('../../../spec_helper', __FILE__) describe "MatchData#string" do it "returns a copy of the match string" do str = /(.)(.)(\d+)(\d)/.match("THX1138.").string str.should == "THX1138." end it "returns a frozen copy of the match string" do str = /(.)(.)(\d+)(\d)/.match("THX1138.").string str.should == "THX1138." str.frozen?.should == true end end
Version data entries
52 entries across 52 versions & 2 rubygems