Sha256: 0d28ef382442381b2d019acf177ade03673cc80bc7860fe9abbe1c3a975bac1e
Contents?: true
Size: 344 Bytes
Versions: 64
Compression:
Stored size: 344 Bytes
Contents
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper' ruby_version_is ""..."1.9" do describe "MatchData#select" do it "yields the contents of the match array to a block" do /(.)(.)(\d+)(\d)/.match("THX1138: The Movie").select { |x| x }.should == ["HX1138", "H", "X", "113", "8"] end end end
Version data entries
64 entries across 64 versions & 1 rubygems