summaryrefslogtreecommitdiff
path: root/spec/ruby/core/matchdata/to_s_spec.rb
blob: 3eb3b925331531a71594bf2b036208c887a5d12e (plain)
1
2
3
4
5
6
7
require File.expand_path('../../../spec_helper', __FILE__)

describe "MatchData#to_s" do
  it "returns the entire matched string" do
    /(.)(.)(\d+)(\d)/.match("THX1138.").to_s.should == "HX1138"
  end
end