require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper' describe "MatchData#post_match" do it "returns the string after the match equiv. special var $'" do /(.)(.)(\d+)(\d)/.match("THX1138: The Movie").post_match.should == ': The Movie' $'.should == ': The Movie' end end