Sha256: 0ff092e3a4df44f6dace84f75e234a50574037ef123c6d36cf4c87684e65d0bf
Contents?: true
Size: 296 Bytes
Versions: 83
Compression:
Stored size: 296 Bytes
Contents
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper' describe "MatchData#pre_match" do it "returns the string before the match, equiv. special var $`" do /(.)(.)(\d+)(\d)/.match("THX1138: The Movie").pre_match.should == 'T' $`.should == 'T' end end
Version data entries
83 entries across 83 versions & 1 rubygems