aboutsummaryrefslogtreecommitdiffstats
path: root/spec/rubyspec/core/matchdata/captures_spec.rb
blob: 2a83b26cd423a183d2de7cb8d8e74f9ce62aaea7 (plain)
1
2
3
4
5
6
7
require File.expand_path('../../../spec_helper', __FILE__)

describe "MatchData#captures" do
  it "returns an array of the match captures" do
    /(.)(.)(\d+)(\d)/.match("THX1138.").captures.should == ["H","X","113","8"]
  end
end