Sha256: d6f7ca7ec62dac88ea71eaa0e3ff95fda6b09a6c85f1f7d5fcaf8a08f6dd2981
Contents?: true
Size: 859 Bytes
Versions: 3
Compression:
Stored size: 859 Bytes
Contents
require 'spec_helper' module Exlibris module Aleph module Table module Reader module Matcher describe Base do let(:regexp) { /t(est)/ } let(:string) { 'test' } subject(:base) { Base.new(regexp, string) } describe '#regexp' do subject { base.regexp } it { should be_a Regexp } end describe '#match_data' do subject { base.match_data } it { should be_a MatchData } end describe '#matched_data' do subject { base.matched_data } it { should be_an Array } end describe '#matches?' do subject { base.matches? } it { should be_true } end end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems