summaryrefslogtreecommitdiff
path: root/spec/ruby/core/matchdata/shared/length.rb
blob: 6312a7ed4ccc94ef411a2db478be265ddbd88ce3 (plain)
1
2
3
4
5
describe :matchdata_length, shared: true do
  it "length should return the number of elements in the match array" do
    /(.)(.)(\d+)(\d)/.match("THX1138.").send(@method).should == 5
  end
end